1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 requests,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pyirishrail";
12 version = "0.0.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "ttroy50";
17 repo = "pyirishrail";
18 tag = version;
19 hash = "sha256-NgARqhcXP0lgGpgBRiNtQaSn9JcRNtCcZPljcL7t3Xc=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ requests ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "pyirishrail" ];
29
30 meta = {
31 description = "Python library to get the real-time transport information (RTPI) from Irish Rail";
32 homepage = "https://github.com/ttroy50/pyirishrail";
33 license = lib.licenses.mit;
34 maintainers = [ lib.maintainers.jamiemagee ];
35 };
36}