summary refs log tree commit diff
path: root/pkgs/development/python-modules/decorator/default.nix
blob: f23d59291925576edd747ba9a4be828da3e10cd7 (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
{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
  pname = "decorator";
  version = "4.4.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "54c38050039232e1db4ad7375cfce6748d7b41c29e95a081c8a6d2c30364a2ce";
  };

  postPatch = ''
    substituteInPlace src/tests/test.py --replace "DocumentationTestCase" "NoDocumentation"
  '';

  meta = with lib; {
    homepage = https://pypi.python.org/pypi/decorator;
    description = "Better living through Python with decorators";
    license = lib.licenses.mit;
    maintainers = [ maintainers.costrouc ];
  };
}