2023-02-12 13:04:21 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
|
|
|
wrapt,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deprecat";
|
2024-07-24 03:36:52 +00:00
|
|
|
version = "2.1.3";
|
2024-03-28 09:43:58 +00:00
|
|
|
pyproject = true;
|
2023-02-12 13:04:21 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mjhajharia";
|
2024-03-28 09:43:58 +00:00
|
|
|
repo = "deprecat";
|
2023-02-12 13:04:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-24 03:36:52 +00:00
|
|
|
hash = "sha256-CvW4SQ78FG8GqBs6/a0yHWfTAn64sH54GVSETooMa6A=";
|
2023-02-12 13:04:21 +00:00
|
|
|
};
|
|
|
|
|
2024-03-28 09:43:58 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2023-02-12 13:04:21 +00:00
|
|
|
|
2024-03-28 09:43:58 +00:00
|
|
|
dependencies = [ wrapt ];
|
2023-02-12 13:04:21 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "deprecat" ];
|
|
|
|
|
2024-03-28 09:47:47 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# https://github.com/mjhajharia/deprecat/issues/13
|
|
|
|
"tests/test_sphinx.py"
|
|
|
|
];
|
|
|
|
|
2023-02-12 13:04:21 +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 ];
|
|
|
|
};
|
|
|
|
}
|