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