mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-05 20:30:18 +00:00
This commit replaces every use of '# or' in a license list with the lib.licenses.OR compound license constructor. Assisted-by: claude-opus-5-5
48 lines
894 B
Nix
48 lines
894 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pyparsing,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "bibtexparser";
|
|
version = "1.4.4";
|
|
pyproject = true;
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sciunto-org";
|
|
repo = "python-${finalAttrs.pname}";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-9zLJZAk2IBYTL7lACh6erY7A44XFZGJCr8dcpYlwKRI=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ pyparsing ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "bibtexparser" ];
|
|
|
|
passthru = {
|
|
# bulk updater uses wrong tag
|
|
skipBulkUpdate = true;
|
|
};
|
|
|
|
meta = {
|
|
description = "Bibtex parser for Python";
|
|
homepage = "https://github.com/sciunto-org/python-bibtexparser";
|
|
license =
|
|
with lib.licenses;
|
|
OR [
|
|
lgpl3Only
|
|
bsd3
|
|
];
|
|
};
|
|
})
|