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