summary refs log tree commit diff
path: root/pkgs/development/python-modules/sigtools/default.nix
blob: cf32ad5db79cb7f850033d2f6706b4739e3d93a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, buildPythonPackage
, fetchPypi
, sphinx
, mock
, coverage
, unittest2
, attrs
, funcsigs
, six
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "sigtools";
  version = "4.0.1";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-S44TWpzU0uoA2mcMCTNy105nK6OruH9MmNjnPepURFw=";
  };

  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;
  };

}