mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
28 lines
738 B
Nix
28 lines
738 B
Nix
{ 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 ];
|
|
};
|
|
}
|