python3Packages.pyzotero: init at 1.11.0 (#506058)
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user