diff --git a/pkgs/applications/office/watson/default.nix b/pkgs/applications/office/watson/default.nix new file mode 100644 index 00000000000..e3d04285d21 --- /dev/null +++ b/pkgs/applications/office/watson/default.nix @@ -0,0 +1,27 @@ +{ stdenv, pythonPackages }: + +pythonPackages.buildPythonApplication rec { + pname = "td-watson"; + name = "${pname}-${version}"; + version = "1.4.0"; + + src = pythonPackages.fetchPypi { + inherit version pname; + sha256 = "1py0g4990jmvq0dn7jasda7f10kzr41bix46hnbyc1rshjzc17hq"; + }; + + # uses tox, test invocation fails + doCheck = true; + checkPhase = '' + py.test -vs tests + ''; + checkInputs = with pythonPackages; [ py pytest pytest-datafiles mock pytest-mock pytestrunner ]; + propagatedBuildInputs = with pythonPackages; [ requests2 click arrow ]; + + meta = with stdenv.lib; { + homepage = https://tailordev.github.io/Watson/; + description = "A wonderful CLI to track your time!"; + license = licenses.mit; + maintainers = with maintainers; [ mguentner ] ; + }; +} \ No newline at end of file diff --git a/pkgs/development/python-modules/pytest-datafiles/default.nix b/pkgs/development/python-modules/pytest-datafiles/default.nix new file mode 100644 index 00000000000..6df1792f884 --- /dev/null +++ b/pkgs/development/python-modules/pytest-datafiles/default.nix @@ -0,0 +1,19 @@ +{ stdenv, buildPythonPackage, fetchPypi, py, pytest }: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "pytest-datafiles"; + version = "1.0"; + src = fetchPypi { + inherit version pname; + sha256 = "1w5435b5pimk6479ml53lmld3qbag7awcg4gl3ljdywc1v096r5v"; + }; + + buildInputs = [ py pytest ]; + + meta = with stdenv.lib; { + license = licenses.mit; + website = https://pypi.python.org/pypi/pytest-catchlog/; + description = "py.test plugin to create a 'tmpdir' containing predefined files/directories."; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5febd6cbbb4..944db15e148 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16199,6 +16199,10 @@ with pkgs; imlib2 = imlib2-nox; }; + watson = callPackage ../applications/office/watson { + pythonPackages = python3Packages; + }; + way-cooler = callPackage ../applications/window-managers/way-cooler {}; wayv = callPackage ../tools/X11/wayv {}; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 430cc4ac386..0ea674d50dc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5076,6 +5076,8 @@ in { }; }; + pytest-datafiles = callPackage ../development/python-modules/pytest-datafiles { }; + pytest-django = callPackage ../development/python-modules/pytest-django { }; pytest-fixture-config = buildPythonPackage rec { @@ -5155,9 +5157,9 @@ in { pytest-mock = buildPythonPackage rec { name = "${pname}-${version}"; pname = "pytest-mock"; - version = "1.2"; + version = "1.6.0"; - buildInputs = with self; [ pytest ]; + buildInputs = with self; [ pytest setuptools_scm ]; propagatedBuildInputs = with self; [ mock ]; meta = { @@ -5168,9 +5170,9 @@ in { platforms = platforms.all; }; - src = pkgs.fetchurl { - url = "mirror://pypi/p/${pname}/${name}.zip"; - sha256 = "03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp"; + src = fetchPypi { + inherit pname version; + sha256 = "07qccww4bq9jxlc0fbhlspr13kcsixchsnl8vk4wdiyvsjy7r8c3"; }; };