2018-04-11 12:19:47 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python, packaging, unittest2 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deprecation";
|
2018-10-06 12:56:16 +02:00
|
|
|
version = "2.0.6";
|
2018-04-11 12:19:47 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-06 12:56:16 +02:00
|
|
|
sha256 = "68071e5ae7cd7e9da6c7dffd750922be4825c7c3a6780d29314076009cc39c35";
|
2018-04-11 12:19:47 +02: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;
|
|
|
|
};
|
|
|
|
}
|