depot/third_party/nixpkgs/pkgs/development/python-modules/sigtools/default.nix
Default email 4cb23072fc Project import generated by Copybara.
GitOrigin-RevId: 6d8215281b2f87a5af9ed7425a26ac575da0438f
2022-01-20 00:45:15 +01:00

36 lines
825 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, sphinx
, mock
, coverage
, unittest2
, funcsigs
, six
}:
buildPythonPackage rec {
pname = "sigtools";
version = "2.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "e7789628ec0d02e421bca76532b0d5da149f96f09e7ed4a5cbf318624b75e949";
};
propagatedBuildInputs = [ funcsigs six ];
patchPhase = ''sed -i s/test_suite="'"sigtools.tests"'"/test_suite="'"unittest2.collector"'"/ setup.py'';
# repeated_test no longer exists in nixpkgs
# Also see: https://github.com/epsy/sigtools/issues/26
doCheck = false;
checkInputs = [ sphinx mock coverage unittest2 ];
meta = with lib; {
description = "Utilities for working with 3.3's inspect.Signature objects.";
homepage = "https://pypi.python.org/pypi/sigtools";
license = licenses.mit;
};
}