1{ lib, buildPythonPackage, fetchPypi, python, packaging, unittest2 }: 2 3buildPythonPackage rec { 4 pname = "deprecation"; 5 version = "2.0.5"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "cbe7d15006bc339709be5e02b14884ecc479639c1a3714a908de3a8ca13b5ca9"; 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}