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