1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 pdm-backend,
7 pytz,
8 oauthlib,
9 requests,
10 websocket-client,
11}:
12
13buildPythonPackage rec {
14 pname = "pyfireservicerota";
15 version = "0.0.46";
16 pyproject = true;
17
18 disabled = pythonOlder "3.10";
19
20 src = fetchFromGitHub {
21 owner = "cyberjunky";
22 repo = "python-fireservicerota";
23 tag = version;
24 hash = "sha256-2pCv/9VwGUDS5wFdJCxOevl7vWg+iXInI/xY3jPp7BM=";
25 };
26
27 build-system = [ pdm-backend ];
28
29 dependencies = [
30 pytz
31 oauthlib
32 requests
33 websocket-client
34 ];
35
36 # no tests implemented
37 doCheck = false;
38
39 pythonImportsCheck = [ "pyfireservicerota" ];
40
41 meta = with lib; {
42 changelog = "https://github.com/cyberjunky/python-fireservicerota/releases/tag/${src.tag}";
43 description = "Python 3 API wrapper for FireServiceRota/BrandweerRooster";
44 homepage = "https://github.com/cyberjunky/python-fireservicerota";
45 license = licenses.mit;
46 maintainers = with maintainers; [ dotlambda ];
47 };
48}