2021-09-10 14:13:20 +02:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, wrapt
|
2021-09-10 14:16:24 +02:00
|
|
|
, pytestCheckHook
|
2021-09-10 14:13:20 +02:00
|
|
|
}:
|
2019-07-22 13:38:34 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-09-10 14:16:24 +02:00
|
|
|
pname = "deprecated";
|
2021-09-10 14:13:20 +02:00
|
|
|
version = "1.2.13";
|
2019-07-22 13:38:34 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-09-10 14:16:24 +02:00
|
|
|
pname = "Deprecated";
|
|
|
|
inherit version;
|
2021-09-10 14:13:20 +02:00
|
|
|
sha256 = "sha256-Q6xTNdqQwxwkugKK9TapHUHVP55pAd2wIbzFcs5E440=";
|
2019-07-22 13:38:34 +02:00
|
|
|
};
|
|
|
|
|
2021-09-10 14:16:24 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "deprecated" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-07-22 13:38:34 +02:00
|
|
|
homepage = "https://github.com/tantale/deprecated";
|
|
|
|
description = "Python @deprecated decorator to deprecate old python classes, functions or methods";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tilpner ];
|
|
|
|
};
|
|
|
|
}
|