From 7aafda3024daae0f35d553b8c7567354f0b8b6ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20G=C3=BCntner?= Date: Thu, 4 May 2017 19:18:28 +0200 Subject: [PATCH 1/3] pythonPackages: pytest-datafiles init at 1.0 --- .../pytest-datafiles/default.nix | 19 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-datafiles/default.nix 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 000000000000..6df1792f884b --- /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/python-packages.nix b/pkgs/top-level/python-packages.nix index c41ed0522c46..699a0fd19245 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5190,6 +5190,8 @@ in { }; }; + pytest-datafiles = callPackage ../development/python-modules/pytest-datafiles { }; + pytest-django = callPackage ../development/python-modules/pytest-django { }; pytest-fixture-config = buildPythonPackage rec { From 401ace9cd32d1d3e12b47a49bbd757c3e763a6e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20G=C3=BCntner?= Date: Thu, 4 May 2017 19:18:58 +0200 Subject: [PATCH 2/3] pythonPackages: pytest-mock 1.2 -> 1.6.0 --- pkgs/top-level/python-packages.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 699a0fd19245..363963e700a1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5271,9 +5271,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 = { @@ -5284,9 +5284,9 @@ in { platforms = platforms.all; }; - src = pkgs.fetchurl { - url = "mirror://pypi/p/${pname}/${name}.zip"; - sha256 = "03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp"; + src = fetchPypi { + inherit pname version; + sha256 = "07qccww4bq9jxlc0fbhlspr13kcsixchsnl8vk4wdiyvsjy7r8c3"; }; }; From de53284cbd258a1a723677b8a1e9ec0eaf724ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20G=C3=BCntner?= Date: Thu, 4 May 2017 18:11:36 +0200 Subject: [PATCH 3/3] watson: init at 1.4.0 --- pkgs/applications/office/watson/default.nix | 27 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/applications/office/watson/default.nix diff --git a/pkgs/applications/office/watson/default.nix b/pkgs/applications/office/watson/default.nix new file mode 100644 index 000000000000..e3d04285d21b --- /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/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index de8d9fd05cba..d3883fd2f008 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16193,6 +16193,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 {};