20 buildPythonPackage rec {
25 disabled = pythonOlder "3.8";
27 src = fetchFromGitHub {
30 rev = "refs/tags/v${version}";
31 hash = "sha256-ETgpXSUUsV1xoZjdnL2bzn4HwDjKC2t13yXwf28OBqI=";
35 substituteInPlace pyproject.toml \
36 --replace 'aiohttp = {extras = ["speedups"], version = "^3.7.4"}' 'aiohttp = {extras = ["speedups"], version = ">=3.7.4"}' \
37 --replace 'async-timeout = "^3.0.1"' 'async-timeout = ">=3.0.1"' \
38 --replace 'rich = "^10.1.0"' 'rich = ">=10.1.0"'
41 nativeBuildInputs = [ poetry-core ];
43 propagatedBuildInputs = [
57 # Project has no tests
60 pythonImportsCheck = [ "surepy" ];
63 description = "Python library to interact with the Sure Petcare API";
64 mainProgram = "surepy";
65 homepage = "https://github.com/benleb/surepy";
66 license = with licenses; [ mit ];
67 maintainers = with maintainers; [ fab ];