Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 25 lines 597 B view raw
1{ lib, buildPythonPackage, fetchPypi, python, packaging, unittest2 }: 2 3buildPythonPackage rec { 4 pname = "deprecation"; 5 version = "2.0.6"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "68071e5ae7cd7e9da6c7dffd750922be4825c7c3a6780d29314076009cc39c35"; 10 }; 11 12 propagatedBuildInputs = [ packaging ]; 13 14 checkInputs = [ unittest2 ]; 15 16 checkPhase = '' 17 ${python.interpreter} -m unittest discover 18 ''; 19 20 meta = with lib; { 21 description = "A library to handle automated deprecations"; 22 homepage = https://deprecation.readthedocs.io/; 23 license = licenses.asl20; 24 }; 25}