1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 poetry-core,
7 requests,
8}:
9
10buildPythonPackage rec {
11 pname = "hydrus-api";
12 version = "5.1.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchPypi {
18 pname = "hydrus_api";
19 inherit version;
20 hash = "sha256-oA3DbdX+MRZiInCKXurBdKlUFQ4jeU+jHr9NxMEHQmI=";
21 };
22
23 build-system = [ poetry-core ];
24
25 dependencies = [ requests ];
26
27 pythonImportsCheck = [ "hydrus_api" ];
28
29 # There are no unit tests
30 doCheck = false;
31
32 meta = with lib; {
33 description = "Python module implementing the Hydrus API";
34 homepage = "https://gitlab.com/cryzed/hydrus-api";
35 license = licenses.agpl3Plus;
36 maintainers = with maintainers; [ dandellion ];
37 };
38}