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