1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 wrapt,
6 pytestCheckHook,
7 sphinxHook,
8}:
9
10buildPythonPackage rec {
11 pname = "deprecated";
12 version = "1.2.14";
13 format = "setuptools";
14 outputs = [
15 "out"
16 "doc"
17 ];
18
19 src = fetchFromGitHub {
20 owner = "tantale";
21 repo = "deprecated";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-H5Gp2F/ChMeEH4fSYXIB34syDIzDymfN949ksJnS0k4=";
24 };
25
26 nativeBuildInputs = [ sphinxHook ];
27
28 propagatedBuildInputs = [ wrapt ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "deprecated" ];
33
34 meta = with lib; {
35 homepage = "https://github.com/tantale/deprecated";
36 description = "Python @deprecated decorator to deprecate old python classes, functions or methods";
37 license = licenses.mit;
38 maintainers = with maintainers; [ tilpner ];
39 };
40}