Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / deprecat / default.nix
blobda81c63cca8695810ae9c683e2a4dd3f88923ae1
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.1";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "mjhajharia";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-3Xl/IC+ImFUxxLry15MIIVRf6aR+gA9K5S2IQomkv+o=";
22   };
24   nativeBuildInputs = [
25     setuptools-scm
26   ];
28   propagatedBuildInputs = [
29     wrapt
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "deprecat"
38   ];
40   meta = with lib; {
41     description = "Decorator to deprecate old python classes, functions or methods";
42     homepage = "https://github.com/mjhajharia/deprecat";
43     changelog = "https://github.com/mjhajharia/deprecat/releases/tag/v${version}";
44     license = licenses.mit;
45     maintainers = with maintainers; [ fab ];
46   };