2018-04-11 11:19:47 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, packaging, unittest2 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deprecation";
|
2018-06-21 06:37:16 +01:00
|
|
|
version = "2.0.4";
|
2018-04-11 11:19:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-21 06:37:16 +01:00
|
|
|
sha256 = "2c259bfc0237f16bbe36cb32b6d81addd919b8f4bc7253738576816e82841b96";
|
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;
|
|
|
|
};
|
|
|
|
}
|