2023-02-22 10:55:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
|
|
|
, wrapt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deprecat";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.1.2";
|
|
|
|
pyproject = true;
|
2023-02-22 10:55:15 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mjhajharia";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "deprecat";
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-uAabZAtZDhcX6TfiM0LnrAzxxS64ys+vdodmxO//0x8=";
|
2023-02-22 10:55:15 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2023-02-22 10:55:15 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2023-02-22 10:55:15 +00:00
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"deprecat"
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# https://github.com/mjhajharia/deprecat/issues/13
|
|
|
|
"tests/test_sphinx.py"
|
|
|
|
];
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Decorator to deprecate old python classes, functions or methods";
|
|
|
|
homepage = "https://github.com/mjhajharia/deprecat";
|
|
|
|
changelog = "https://github.com/mjhajharia/deprecat/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|