nixpkgs/pkgs/development/python-modules/decorator/default.nix

26 lines
588 B
Nix
Raw Normal View History

2017-12-31 11:24:15 +00:00
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "decorator";
2019-11-19 14:35:34 +00:00
version = "4.4.1";
2017-12-31 11:24:15 +00:00
src = fetchPypi {
inherit pname version;
2019-11-19 14:35:34 +00:00
sha256 = "54c38050039232e1db4ad7375cfce6748d7b41c29e95a081c8a6d2c30364a2ce";
2017-12-31 11:24:15 +00:00
};
2019-11-19 14:35:34 +00:00
postPatch = ''
substituteInPlace src/tests/test.py --replace "DocumentationTestCase" "NoDocumentation"
'';
meta = with lib; {
2017-12-31 11:24:15 +00:00
homepage = https://pypi.python.org/pypi/decorator;
description = "Better living through Python with decorators";
license = lib.licenses.mit;
maintainers = [ maintainers.costrouc ];
2017-12-31 11:24:15 +00:00
};
}