python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / deprecat / default.nix
blob1635a99d71378f824bc8388f000f86762e74d915
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   setuptools-scm,
8   wrapt,
9 }:
11 buildPythonPackage rec {
12   pname = "deprecat";
13   version = "2.1.3";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "mjhajharia";
20     repo = "deprecat";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-CvW4SQ78FG8GqBs6/a0yHWfTAn64sH54GVSETooMa6A=";
23   };
25   build-system = [ setuptools-scm ];
27   dependencies = [ wrapt ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "deprecat" ];
33   disabledTestPaths = [
34     # https://github.com/mjhajharia/deprecat/issues/13
35     "tests/test_sphinx.py"
36   ];
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   };