From 8e222182204681548ca3654a753ab42c1ea59e0d Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 16:56:42 -0400 Subject: [PATCH] pythonPAckages.repeated_test: refactor move to python-modules --- .../python-modules/repeated_test/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 23 +--------------- 2 files changed, 27 insertions(+), 22 deletions(-) create mode 100644 pkgs/development/python-modules/repeated_test/default.nix diff --git a/pkgs/development/python-modules/repeated_test/default.nix b/pkgs/development/python-modules/repeated_test/default.nix new file mode 100644 index 000000000000..5722a858fae3 --- /dev/null +++ b/pkgs/development/python-modules/repeated_test/default.nix @@ -0,0 +1,26 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, unittest2 +, six +}: + +buildPythonPackage rec { + pname = "repeated_test"; + version = "0.1a3"; + + src = fetchPypi { + inherit pname version; + sha256 = "062syp7kl2g0x6qx3z8zb5sdycpi7qcpxp9iml2v8dqzqnij9bpg"; + }; + + buildInputs = [ unittest2 ]; + propagatedBuildInputs = [ six ]; + + meta = with stdenv.lib; { + description = "A quick unittest-compatible framework for repeating a test function over many fixtures"; + homepage = "https://github.com/epsy/repeated_test"; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f7e27e39b894..3683006e18d4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4549,28 +4549,7 @@ in { htmltreediff = callPackage ../development/python-modules/htmltreediff { }; - repeated_test = buildPythonPackage rec { - name = "repeated_test-${version}"; - version = "0.1a3"; - - src = pkgs.fetchurl { - url = "mirror://pypi/r/repeated-test/${name}.tar.gz"; - sha256 = "062syp7kl2g0x6qx3z8zb5sdycpi7qcpxp9iml2v8dqzqnij9bpg"; - }; - - buildInputs = with self; [ - unittest2 - ]; - propagatedBuildInputs = with self; [ - six - ]; - - meta = { - description = "A quick unittest-compatible framework for repeating a test function over many fixtures"; - homepage = "https://github.com/epsy/repeated_test"; - license = licenses.mit; - }; - }; + repeated_test = callPackage ../development/python-modules/repeated_test { }; Keras = callPackage ../development/python-modules/keras { };