python3Packages.pypaperless: init at 4.1.0
This commit is contained in:
parent
2c49c6d394
commit
ddafa84814
54
pkgs/development/python-modules/pypaperless/default.nix
Normal file
54
pkgs/development/python-modules/pypaperless/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user