summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/funcsigs/default.nix
blob: fc2ae9722c9a9dd2da4c5c6750fc070da752f232 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  isPyPy,
  isPy3k,
}:

buildPythonPackage rec {
  pname = "funcsigs";
  version = "1.0.2";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7";
  };

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