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