2018-04-11 11:19:47 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, packaging, unittest2 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deprecation";
|
2020-05-06 17:13:33 +01:00
|
|
|
version = "2.1.0";
|
2018-04-11 11:19:47 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-06 17:13:33 +01:00
|
|
|
sha256 = "1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj";
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://deprecation.readthedocs.io/";
|
2018-04-11 11:19:47 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|