python3Packages.pyzotero: init at 1.11.0 (#506058)

This commit is contained in:
Gaétan Lepage
2026-04-05 00:04:49 +00:00
committed by GitHub
2 changed files with 71 additions and 0 deletions
@@ -0,0 +1,69 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
uv-build,
# dependencies
bibtexparser,
feedparser,
httpx,
whenever,
pytest-asyncio,
# tests
pytest-cov-stub,
pytestCheckHook,
python-dateutil,
pytz,
}:
buildPythonPackage (finalAttrs: {
pname = "pyzotero";
version = "1.11.0";
pyproject = true;
src = fetchFromGitHub {
owner = "urschrei";
repo = "pyzotero";
tag = "v${finalAttrs.version}";
hash = "sha256-8K9Lg9Ehl0QARU2tAidMyynorPIMGtxDXzshmbpb6So=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "uv_build>=0.8.14,<0.9.0" "uv-build"
'';
build-system = [
uv-build
];
dependencies = [
bibtexparser
feedparser
httpx
whenever
];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
python-dateutil
pytz
];
pythonImportsCheck = [ "pyzotero" ];
meta = {
description = "Python client for the Zotero API";
homepage = "https://pyzotero.readthedocs.io/en/latest/";
downloadPage = "https://pyzotero.readthedocs.io/en/latest/";
changelog = "https://github.com/urschrei/pyzotero/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.blueOak100;
maintainers = with lib.maintainers; [ ethancedwards8 ];
};
})
+2
View File
@@ -16297,6 +16297,8 @@ self: super: with self; {
pyzmq = callPackage ../development/python-modules/pyzmq { };
pyzotero = callPackage ../development/python-modules/pyzotero { };
pyzstd = callPackage ../development/python-modules/pyzstd { zstd-c = pkgs.zstd; };
pyzx = callPackage ../development/python-modules/pyzx { };