
Diff: https://github.com/tb1337/paperless-api/compare/refs/tags/v4.1.1...refs/tags/v5.0.0 Changelog: https://github.com/tb1337/paperless-api/releases/tag/v5.0.0
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
aiohttp,
|
|
aioresponses,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
lib,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
yarl,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pypaperless";
|
|
version = "5.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tb1337";
|
|
repo = "paperless-api";
|
|
tag = "v${version}";
|
|
hash = "sha256-ItaHtAhLrrrLrem6gW5oRUqYIJAdhBJH+aig2cWN1a4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
|
|
'';
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
pythonRelaxDeps = [
|
|
"aiohttp"
|
|
"yarl"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|