1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "py-nextbusnext";
12 version = "1.0.2";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "ViViDboarder";
19 repo = "py_nextbus";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-5zD8AKb4/4x4cVA922OlzSOXlg3F6QCcr16agEQkUWM=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "py_nextbus" ];
29
30 meta = with lib; {
31 description = "Minimalistic Python client for the NextBus public API";
32 homepage = "https://github.com/ViViDboarder/py_nextbus";
33 license = licenses.mit;
34 maintainers = with maintainers; [ dotlambda ];
35 };
36}