python3Packages.pypaperless: init at 4.1.0

This commit is contained in:
Robert Schütz 2025-06-04 18:08:49 -07:00
parent 2c49c6d394
commit ddafa84814
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,54 @@
{
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
hatchling,
lib,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
yarl,
}:
buildPythonPackage rec {
pname = "pypaperless";
version = "4.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tb1337";
repo = "paperless-api";
tag = "v${version}";
hash = "sha256-uzMYHlV+xqWIpqPpX2myxS9cqBsqShOoQ9oedDT/zeA=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
'';
build-system = [ hatchling ];
dependencies = [
aiohttp
yarl
];
pythonImportsCheck = [ "pypaperless" ];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
meta = {
changelog = "https://github.com/tb1337/paperless-api/releases/tag/${src.tag}";
description = "Little api client for paperless(-ngx)";
homepage = "https://github.com/tb1337/paperless-api";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -13151,6 +13151,8 @@ self: super: with self; {
pypandoc = callPackage ../development/python-modules/pypandoc { };
pypaperless = callPackage ../development/python-modules/pypaperless { };
pyparser = callPackage ../development/python-modules/pyparser { };
pyparsing = callPackage ../development/python-modules/pyparsing { };