pythonPackages.shouldbe: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 13:21:51 -04:00 committed by Frederik Rietdijk
parent 283eb6f7d1
commit 009d784a0d
2 changed files with 29 additions and 21 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, nose
, forbiddenfruit
}:
buildPythonPackage rec {
version = "0.1.0";
pname = "shouldbe";
src = fetchPypi {
inherit pname version;
sha256 = "07pchxpv1xvjbck0xy44k3a1jrvklg0wbyccn14w0i7d135d4174";
};
buildInputs = [ nose ];
propagatedBuildInputs = [ forbiddenfruit ];
doCheck = false; # Segmentation fault on py 3.5
meta = with stdenv.lib; {
description = "Python Assertion Helpers inspired by Shouldly";
homepage = https://pypi.python.org/pypi/shouldbe/;
license = licenses.mit;
};
}

View File

@ -3722,27 +3722,7 @@ in {
shortuuid = callPackage ../development/python-modules/shortuuid { }; shortuuid = callPackage ../development/python-modules/shortuuid { };
shouldbe = buildPythonPackage rec { shouldbe = callPackage ../development/python-modules/shouldbe { };
version = "0.1.0";
name = "shouldbe-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/s/shouldbe/${name}.tar.gz";
sha256 = "07pchxpv1xvjbck0xy44k3a1jrvklg0wbyccn14w0i7d135d4174";
};
buildInputs = with self; [ nose ];
propagatedBuildInputs = with self; [ forbiddenfruit ];
doCheck = false; # Segmentation fault on py 3.5
meta = {
description = "Python Assertion Helpers inspired by Shouldly";
homepage = https://pypi.python.org/pypi/shouldbe/;
license = licenses.mit;
};
};
simplejson = callPackage ../development/python-modules/simplejson { }; simplejson = callPackage ../development/python-modules/simplejson { };