mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
pythonPackages.sigtools: refactor move to python-modules
This commit is contained in:
parent
b1dbddd584
commit
b42e1d1b1e
33
pkgs/development/python-modules/sigtools/default.nix
Normal file
33
pkgs/development/python-modules/sigtools/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user