1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 pytestCheckHook,
6 pytz,
7 requests,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "israel-rail-api";
13 version = "0.1.3";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "sh0oki";
18 repo = "israel-rail-api";
19 tag = "v${version}";
20 hash = "sha256-viIETVCW3YSwJOsFxkYoi0Ko9vXQEP9d+fjQAlb142c=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 pytz
27 requests
28 ];
29
30 pythonImportsCheck = [ "israelrailapi" ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 meta = {
35 changelog = "https://github.com/sh0oki/israel-rail-api/releases/tag/${src.tag}";
36 description = "Python wrapping of the Israeli Rail API";
37 homepage = "https://github.com/sh0oki/israel-rail-api";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ dotlambda ];
40 };
41}