nixpkgs/pkgs/development/python-modules/deprecation/default.nix
2018-07-22 16:52:38 +02:00

26 lines
597 B
Nix

{ lib, buildPythonPackage, fetchPypi, python, packaging, unittest2 }:
buildPythonPackage rec {
pname = "deprecation";
version = "2.0.5";
src = fetchPypi {
inherit pname version;
sha256 = "cbe7d15006bc339709be5e02b14884ecc479639c1a3714a908de3a8ca13b5ca9";
};
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;
};
}