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