Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.0.1"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.9"; 16 17 src = fetchPypi { 18 pname = "hydrus_api"; 19 inherit version; 20 hash = "sha256-3Roeab9/woGF/aZYm9nbqrcyYN8CKA1k66cTRxx6jM4="; 21 }; 22 23 postPatch = '' 24 substituteInPlace pyproject.toml --replace \ 25 "poetry.masonry.api" \ 26 "poetry.core.masonry.api" 27 ''; 28 29 nativeBuildInputs = [ poetry-core ]; 30 31 propagatedBuildInputs = [ requests ]; 32 33 pythonImportsCheck = [ "hydrus_api" ]; 34 35 # There are no unit tests 36 doCheck = false; 37 38 meta = with lib; { 39 description = "Python module implementing the Hydrus API"; 40 homepage = "https://gitlab.com/cryzed/hydrus-api"; 41 license = licenses.agpl3Plus; 42 maintainers = with maintainers; [ dandellion ]; 43 }; 44}