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