Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #312759 from bcdarwin/python3-duecredit-update

python311Packages.duecredit: 0.9.3 -> 0.10.1

authored by Jörg Thalheim and committed by GitHub cbd3c9ff 9b453d8e

+21 -7
+21 -7
pkgs/development/python-modules/duecredit/default.nix
··· 6 6 , pytestCheckHook 7 7 , vcrpy 8 8 , citeproc-py 9 + , looseversion 9 10 , requests 10 11 }: 11 12 12 13 buildPythonPackage rec { 13 14 pname = "duecredit"; 14 - version = "0.9.3"; 15 + version = "0.10.1"; 15 16 pyproject = true; 16 17 17 18 disabled = pythonOlder "3.8"; 18 19 19 20 src = fetchPypi { 20 21 inherit pname version; 21 - hash = "sha256-+DeOqQ0R+XUlkuSHySFj2oDZqf85mT64PAi/LtTso3I="; 22 + hash = "sha256-IQgrmEclF/USrTjn5A0BbJ5GHgXh1R/KPJx4K4FuUuY="; 22 23 }; 23 24 25 + postPatch = '' 26 + substituteInPlace tox.ini \ 27 + --replace-fail "--cov=duecredit" "" \ 28 + --replace-fail "--cov-config=tox.ini" "" 29 + ''; 30 + 24 31 nativeBuildInputs = [ setuptools ]; 25 - propagatedBuildInputs = [ citeproc-py requests ]; 32 + propagatedBuildInputs = [ 33 + citeproc-py 34 + looseversion 35 + requests 36 + ]; 26 37 27 - nativeCheckInputs = [ pytestCheckHook vcrpy ]; 38 + nativeCheckInputs = [ 39 + pytestCheckHook 40 + vcrpy 41 + ]; 28 42 disabledTests = [ "test_import_doi" ]; # tries to access network 29 43 30 44 preCheck = '' ··· 33 47 34 48 pythonImportsCheck = [ "duecredit" ]; 35 49 36 - meta = with lib; { 50 + meta = { 37 51 homepage = "https://github.com/duecredit/duecredit"; 38 52 description = "Simple framework to embed references in code"; 39 53 mainProgram = "duecredit"; 40 54 changelog = "https://github.com/duecredit/duecredit/releases/tag/${version}"; 41 - license = licenses.bsd2; 42 - maintainers = with maintainers; [ bcdarwin ]; 55 + license = lib.licenses.bsd2; 56 + maintainers = [ lib.maintainers.bcdarwin ]; 43 57 }; 44 58 }