3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.nose2: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 01:08:03 -04:00 committed by Frederik Rietdijk
parent 9492a17e87
commit 1059d71947
2 changed files with 27 additions and 13 deletions

View file

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, six
}:
buildPythonPackage rec {
pname = "nose2";
version = "0.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "0595rh6b6dncbj0jigsyrgrh6h8fsl6w1fr69h76mxv9nllv0rlr";
};
propagatedBuildInputs = [ six ];
# AttributeError: 'module' object has no attribute 'collector'
doCheck = false;
meta = with stdenv.lib; {
description = "nose2 is the next generation of nicer testing for Python";
homepage = https://github.com/nose-devs/nose2;
license = licenses.bsd0;
};
}

View file

@ -2981,19 +2981,7 @@ in {
nose-exclude = callPackage ../development/python-modules/nose-exclude { };
nose2 = buildPythonPackage rec {
name = "nose2-0.5.0";
src = pkgs.fetchurl {
url = "mirror://pypi/n/nose2/${name}.tar.gz";
sha256 = "0595rh6b6dncbj0jigsyrgrh6h8fsl6w1fr69h76mxv9nllv0rlr";
};
meta = {
description = "nose2 is the next generation of nicer testing for Python";
};
propagatedBuildInputs = with self; [ six ];
# AttributeError: 'module' object has no attribute 'collector'
doCheck = false;
};
nose2 = callPackage ../development/python-modules/nose2 { };
nose-cover3 = buildPythonPackage rec {
name = "nose-cover3-${version}";