Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 27 lines 738 B view raw
1{ stdenv, fetchPypi, buildPythonPackage, 2 wrapt, pytest, tox }: 3 4buildPythonPackage rec { 5 pname = "Deprecated"; 6 version = "1.2.6"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "1hcw9y7dvhwg5flk6wy8aa4kkgpvcqq3q4jd53h54586fp7w85d5"; 11 }; 12 13 postPatch = '' 14 # odd broken tests, don't appear in GitHub repo 15 rm tests/demo_classic_usage*.py 16 ''; 17 18 propagatedBuildInputs = [ wrapt ]; 19 checkInputs = [ pytest ]; 20 meta = with stdenv.lib; { 21 homepage = "https://github.com/tantale/deprecated"; 22 description = "Python @deprecated decorator to deprecate old python classes, functions or methods"; 23 platforms = platforms.all; 24 license = licenses.mit; 25 maintainers = with maintainers; [ tilpner ]; 26 }; 27}