Files
nixpkgs/pkgs/development/python-modules/deprecated/default.nix
T

52 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pythonAtLeast,
setuptools,
wrapt,
pytestCheckHook,
sphinxHook,
}:
buildPythonPackage rec {
pname = "deprecated";
version = "1.3.1";
pyproject = true;
outputs = [
"out"
"doc"
];
src = fetchFromGitHub {
owner = "tantale";
repo = "deprecated";
tag = "v${version}";
hash = "sha256-1mB9aRZOsaW7Mqcu1SWIYTusQ7MlMvUucdTyfu++Nx8=";
};
build-system = [ setuptools ];
nativeBuildInputs = [ sphinxHook ];
propagatedBuildInputs = [ wrapt ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = lib.optionals (pythonAtLeast "3.13") [
# assertion text mismatch
"test_classic_deprecated_class_method__warns"
"test_sphinx_deprecated_class_method__warns"
];
pythonImportsCheck = [ "deprecated" ];
meta = {
homepage = "https://github.com/tantale/deprecated";
description = "Python @deprecated decorator to deprecate old python classes, functions or methods";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tilpner ];
};
}