2018-04-11 11:19:47 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, packaging, unittest2 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deprecation";
|
2018-06-12 17:47:00 +01:00
|
|
|
version = "2.0.3";
|
2018-04-11 11:19:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 17:47:00 +01:00
|
|
|
sha256 = "af3180b9aa53e5d3e0ff23934bd14963c7d6effd39c5c8c21973bf1dff8e8479";
|
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;
|
|
|
|
};
|
|
|
|
}
|