blob: 17449fdf66ce1298acaf01e2402c7d8d8377bfb2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, poetry-core
, requests
}:
buildPythonPackage rec {
pname = "hydrus-api";
version = "5.0.1";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "hydrus_api";
inherit version;
hash = "sha256-3Roeab9/woGF/aZYm9nbqrcyYN8CKA1k66cTRxx6jM4=";
};
postPatch = ''
substituteInPlace pyproject.toml --replace \
"poetry.masonry.api" \
"poetry.core.masonry.api"
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
requests
];
pythonImportsCheck = [ "hydrus_api" ];
# There are no unit tests
doCheck = false;
meta = with lib; {
description = "Python module implementing the Hydrus API";
homepage = "https://gitlab.com/cryzed/hydrus-api";
license = licenses.agpl3Plus;
maintainers = with maintainers; [ dandellion ];
};
}
|