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

python311Packages.duecredit: 0.9.3 -> 0.10.1
This commit is contained in:
Jörg Thalheim 2024-05-19 12:36:23 +02:00 committed by GitHub
commit cbd3c9ff45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,25 +6,39 @@
, pytestCheckHook
, vcrpy
, citeproc-py
, looseversion
, requests
}:
buildPythonPackage rec {
pname = "duecredit";
version = "0.9.3";
version = "0.10.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-+DeOqQ0R+XUlkuSHySFj2oDZqf85mT64PAi/LtTso3I=";
hash = "sha256-IQgrmEclF/USrTjn5A0BbJ5GHgXh1R/KPJx4K4FuUuY=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ citeproc-py requests ];
postPatch = ''
substituteInPlace tox.ini \
--replace-fail "--cov=duecredit" "" \
--replace-fail "--cov-config=tox.ini" ""
'';
nativeCheckInputs = [ pytestCheckHook vcrpy ];
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
citeproc-py
looseversion
requests
];
nativeCheckInputs = [
pytestCheckHook
vcrpy
];
disabledTests = [ "test_import_doi" ]; # tries to access network
preCheck = ''
@ -33,12 +47,12 @@ buildPythonPackage rec {
pythonImportsCheck = [ "duecredit" ];
meta = with lib; {
meta = {
homepage = "https://github.com/duecredit/duecredit";
description = "Simple framework to embed references in code";
mainProgram = "duecredit";
changelog = "https://github.com/duecredit/duecredit/releases/tag/${version}";
license = licenses.bsd2;
maintainers = with maintainers; [ bcdarwin ];
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.bcdarwin ];
};
}