Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / deprecat / default.nix
bloba87394dea289ba7075a60dcccda0adc866342e4f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , setuptools-scm
7 , wrapt
8 }:
10 buildPythonPackage rec {
11   pname = "deprecat";
12   version = "2.1.2";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "mjhajharia";
19     repo = "deprecat";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-uAabZAtZDhcX6TfiM0LnrAzxxS64ys+vdodmxO//0x8=";
22   };
24   build-system = [
25     setuptools-scm
26   ];
28   dependencies = [
29     wrapt
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "deprecat"
38   ];
40   disabledTestPaths = [
41     # https://github.com/mjhajharia/deprecat/issues/13
42     "tests/test_sphinx.py"
43   ];
45   meta = with lib; {
46     description = "Decorator to deprecate old python classes, functions or methods";
47     homepage = "https://github.com/mjhajharia/deprecat";
48     changelog = "https://github.com/mjhajharia/deprecat/releases/tag/v${version}";
49     license = licenses.mit;
50     maintainers = with maintainers; [ fab ];
51   };