2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
pdm-backend,
|
|
|
|
pytz,
|
|
|
|
oauthlib,
|
|
|
|
requests,
|
|
|
|
websocket-client,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyfireservicerota";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.0.44";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.10";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-OknGX4xP+AHXRuhizbeTVAfiOX0uRGzAly7FJ1vopDI=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
postPatch = ''
|
|
|
|
# https://github.com/cyberjunky/python-fireservicerota/pull/1
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail '"aiohttp",' '"requests",' \
|
|
|
|
--replace-fail '"aiohttp_retry",' ""
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ pdm-backend ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytz
|
|
|
|
oauthlib
|
|
|
|
requests
|
|
|
|
websocket-client
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyfireservicerota" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python 3 API wrapper for FireServiceRota/BrandweerRooster";
|
|
|
|
homepage = "https://github.com/cyberjunky/python-fireservicerota";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|