Files
nixpkgs/pkgs/development/python-modules/duecredit/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
pytestCheckHook,
pytest-cov-stub,
vcrpy,
citeproc-py,
looseversion,
requests,
}:
buildPythonPackage rec {
pname = "duecredit";
version = "0.10.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-/nOiDk+7LZcroB7fN97BsLoeZG7+XvTMrwxnJMoofUI=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
citeproc-py
looseversion
requests
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
vcrpy
];
disabledTests = [ "test_import_doi" ]; # tries to access network
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ "duecredit" ];
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 = lib.licenses.bsd2;
maintainers = [ lib.maintainers.bcdarwin ];
};
}