1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools-scm,
8 wrapt,
9}:
10
11buildPythonPackage rec {
12 pname = "deprecat";
13 version = "2.1.2";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "mjhajharia";
20 repo = "deprecat";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-uAabZAtZDhcX6TfiM0LnrAzxxS64ys+vdodmxO//0x8=";
23 };
24
25 build-system = [ setuptools-scm ];
26
27 dependencies = [ wrapt ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "deprecat" ];
32
33 disabledTestPaths = [
34 # https://github.com/mjhajharia/deprecat/issues/13
35 "tests/test_sphinx.py"
36 ];
37
38 meta = with lib; {
39 description = "Decorator to deprecate old python classes, functions or methods";
40 homepage = "https://github.com/mjhajharia/deprecat";
41 changelog = "https://github.com/mjhajharia/deprecat/releases/tag/v${version}";
42 license = licenses.mit;
43 maintainers = with maintainers; [ fab ];
44 };
45}