2017-07-28 09:32:38 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2019-05-15 04:56:38 +02:00
|
|
|
, isPyPy, isPy3k, unittest2
|
|
|
|
}:
|
2017-07-28 09:32:38 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "funcsigs";
|
|
|
|
version = "1.0.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unittest2 ];
|
|
|
|
|
2019-05-15 04:56:38 +02:00
|
|
|
# https://github.com/testing-cabal/funcsigs/issues/10
|
|
|
|
patches = stdenv.lib.optional (isPyPy && isPy3k) [ ./fix-pypy3-tests.patch ];
|
|
|
|
|
2017-07-28 09:32:38 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/aliles/funcsigs;
|
2019-07-03 11:27:39 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-07-28 09:32:38 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|