2018-04-11 11:19:47 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, packaging, unittest2 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deprecation";
|
2019-08-20 06:31:46 +01:00
|
|
|
version = "2.0.7";
|
2018-04-11 11:19:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-20 06:31:46 +01:00
|
|
|
sha256 = "1vcjy6flqbzgjh4zhcs0sl83b946wxrlsx5miliz0ik1d9kjyff0";
|
2018-04-11 11:19:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ packaging ];
|
|
|
|
|
|
|
|
checkInputs = [ unittest2 ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest discover
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A library to handle automated deprecations";
|
|
|
|
homepage = https://deprecation.readthedocs.io/;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|