3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/deprecation/default.nix

26 lines
597 B
Nix
Raw Normal View History

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