pythonPAckages.repeated_test: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 16:56:42 -04:00
parent f310c74cfd
commit 8e22218220
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 27 additions and 22 deletions

View file

@ -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;
};
}

View file

@ -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 { };