1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00

python3Packages.deprecated: init at 1.2.6

This commit is contained in:
tilpner 2019-07-22 13:38:34 +02:00 committed by Frederik Rietdijk
parent b63980dc68
commit a4cc672ace
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ stdenv, fetchPypi, buildPythonPackage,
wrapt, pytest, tox }:
buildPythonPackage rec {
pname = "Deprecated";
version = "1.2.6";
src = fetchPypi {
inherit pname version;
sha256 = "1hcw9y7dvhwg5flk6wy8aa4kkgpvcqq3q4jd53h54586fp7w85d5";
};
postPatch = ''
# odd broken tests, don't appear in GitHub repo
rm tests/demo_classic_usage*.py
'';
propagatedBuildInputs = [ wrapt ];
checkInputs = [ pytest ];
meta = with stdenv.lib; {
homepage = "https://github.com/tantale/deprecated";
description = "Python @deprecated decorator to deprecate old python classes, functions or methods";
platforms = platforms.all;
license = licenses.mit;
maintainers = with maintainers; [ tilpner ];
};
}

View file

@ -2137,6 +2137,8 @@ in {
demjson = callPackage ../development/python-modules/demjson { };
deprecated = callPackage ../development/python-modules/deprecated { };
deprecation = callPackage ../development/python-modules/deprecation { };
derpconf = callPackage ../development/python-modules/derpconf { };