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