depot/third_party/nixpkgs/pkgs/development/python-modules/sigtools/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

45 lines
909 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, sphinx
, mock
, coverage
, unittest2
, attrs
, funcsigs
, six
, setuptools-scm
}:
buildPythonPackage rec {
pname = "sigtools";
version = "4.0.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-fMhKC6VuNLfxXkM3RCaPEODEp21r/s6JzswaHKkROLY=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
attrs
];
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;
};
}