Files
nixpkgs/pkgs/development/python-modules/deprecated/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pythonAtLeast,
setuptools,
wrapt,
pytestCheckHook,
sphinxHook,
}:
buildPythonPackage rec {
pname = "deprecated";
version = "1.2.18";
pyproject = true;
outputs = [
"out"
"doc"
];
src = fetchFromGitHub {
owner = "tantale";
repo = "deprecated";
tag = "v${version}";
hash = "sha256-gx5D1KAPELKfb2U93lvuztv3Ea3V+PshcfshIS6uwCo=";
};
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 ];
};
}