504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
42 lines
841 B
Nix
42 lines
841 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, wrapt
|
|
, pytestCheckHook
|
|
, sphinxHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deprecated";
|
|
version = "1.2.14";
|
|
format = "setuptools";
|
|
outputs = [ "out" "doc" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tantale";
|
|
repo = "deprecated";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-H5Gp2F/ChMeEH4fSYXIB34syDIzDymfN949ksJnS0k4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
sphinxHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
wrapt
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "deprecated" ];
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|