diff options
author | tilpner <till@hoeppner.ws> | 2019-07-22 13:38:34 +0200 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-08-17 12:28:58 +0200 |
commit | a4cc672ace990d416d38cfb766c4808306697949 (patch) | |
tree | afc15c7349a7c936b1e97bfd0312dae4f2cce9cf /pkgs/development/python-modules/deprecated | |
parent | b63980dc682c62576a338d25fadb636dde9b2a89 (diff) |
python3Packages.deprecated: init at 1.2.6
Diffstat (limited to 'pkgs/development/python-modules/deprecated')
-rw-r--r-- | pkgs/development/python-modules/deprecated/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/deprecated/default.nix b/pkgs/development/python-modules/deprecated/default.nix new file mode 100644 index 0000000000000..ee7c89d8167d3 --- /dev/null +++ b/pkgs/development/python-modules/deprecated/default.nix @@ -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 ]; + }; +} |