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