mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 18:23:44 +00:00
Merge pull request #312759 from bcdarwin/python3-duecredit-update
python311Packages.duecredit: 0.9.3 -> 0.10.1
This commit is contained in:
commit
cbd3c9ff45
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user