1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 requests,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "py-nextbusnext";
12 version = "2.0.3";
13 pyproject = true;
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchFromGitHub {
18 owner = "ViViDboarder";
19 repo = "py_nextbus";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-dSBjOMqryEddWB54AddGDojRE8/STi3kxfjJsVFBuOw=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ requests ];
27
28 pythonImportsCheck = [ "py_nextbus" ];
29
30 # upstream has no tests
31 doCheck = false;
32
33 meta = with lib; {
34 description = "Minimalistic Python client for the NextBus public API";
35 homepage = "https://github.com/ViViDboarder/py_nextbus";
36 license = licenses.mit;
37 maintainers = with maintainers; [ dotlambda ];
38 };
39}