mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 09:10:08 +00:00
34 lines
759 B
Nix
34 lines
759 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
isPyPy,
|
|
isPy3k,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "funcsigs";
|
|
version = "1.0.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-p7sPLPOj/Rqycyy0nrpCUsKvQkBEJBW0q847hwIqj1A=";
|
|
};
|
|
|
|
# https://github.com/testing-cabal/funcsigs/issues/10
|
|
patches = lib.optionals (isPyPy && isPy3k) [ ./fix-pypy3-tests.patch ];
|
|
|
|
# requires, unittest2 and package hasn't been maintained since 2013
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "funcsigs" ];
|
|
|
|
meta = {
|
|
description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+";
|
|
homepage = "https://github.com/aliles/funcsigs";
|
|
maintainers = [ ];
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|