at master 1.1 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 pythonAtLeast, 6 setuptools, 7 wrapt, 8 pytestCheckHook, 9 sphinxHook, 10}: 11 12buildPythonPackage rec { 13 pname = "deprecated"; 14 version = "1.2.18"; 15 pyproject = true; 16 17 outputs = [ 18 "out" 19 "doc" 20 ]; 21 22 src = fetchFromGitHub { 23 owner = "tantale"; 24 repo = "deprecated"; 25 tag = "v${version}"; 26 hash = "sha256-gx5D1KAPELKfb2U93lvuztv3Ea3V+PshcfshIS6uwCo="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 nativeBuildInputs = [ sphinxHook ]; 32 33 propagatedBuildInputs = [ wrapt ]; 34 35 nativeCheckInputs = [ pytestCheckHook ]; 36 37 disabledTests = lib.optionals (pythonAtLeast "3.13") [ 38 # assertion text mismatch 39 "test_classic_deprecated_class_method__warns" 40 "test_sphinx_deprecated_class_method__warns" 41 ]; 42 43 pythonImportsCheck = [ "deprecated" ]; 44 45 meta = with lib; { 46 homepage = "https://github.com/tantale/deprecated"; 47 description = "Python @deprecated decorator to deprecate old python classes, functions or methods"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ tilpner ]; 50 }; 51}