pythonPackages.sigtools: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-29 17:05:49 -04:00
parent b1dbddd584
commit b42e1d1b1e
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 34 additions and 29 deletions

View File

@ -0,0 +1,33 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, repeated_test
, sphinx
, mock
, coverage
, unittest2
, funcsigs
, six
}:
buildPythonPackage rec {
pname = "sigtools";
version = "1.1a3";
src = fetchPypi {
inherit pname version;
sha256 = "190w14vzbiyvxcl9jmyyimpahar5b0bq69v9iv7chi852yi71w6w";
};
buildInputs = [ repeated_test sphinx mock coverage unittest2 ];
propagatedBuildInputs = [ funcsigs six ];
patchPhase = ''sed -i s/test_suite="'"sigtools.tests"'"/test_suite="'"unittest2.collector"'"/ setup.py'';
meta = with stdenv.lib; {
description = "Utilities for working with 3.3's inspect.Signature objects.";
homepage = "https://pypi.python.org/pypi/sigtools";
license = licenses.mit;
};
}

View File

@ -4561,35 +4561,7 @@ in {
send2trash = callPackage ../development/python-modules/send2trash { };
sigtools = buildPythonPackage rec {
name = "sigtools-${version}";
version = "1.1a3";
src = pkgs.fetchurl {
url = "mirror://pypi/s/sigtools/${name}.tar.gz";
sha256 = "190w14vzbiyvxcl9jmyyimpahar5b0bq69v9iv7chi852yi71w6w";
};
buildInputs = with self; [
repeated_test
sphinx
mock
coverage
unittest2
];
propagatedBuildInputs = with self; [
funcsigs
six
];
patchPhase = ''sed -i s/test_suite="'"sigtools.tests"'"/test_suite="'"unittest2.collector"'"/ setup.py'';
meta = {
description = "Utilities for working with 3.3's inspect.Signature objects.";
homepage = "https://pypi.python.org/pypi/sigtools";
license = licenses.mit;
};
};
sigtools = callPackage ../development/python-modules/sigtools { };
clize = buildPythonPackage rec {
name = "clize-${version}";