1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 requests,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "py-nextbusnext";
12 version = "2.3.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "ViViDboarder";
17 repo = "py_nextbus";
18 tag = "v${version}";
19 hash = "sha256-zTOP2wj1ZseXYbWGNgehIkgZQkV4u74yjI0mhn35e4E=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ requests ];
25
26 pythonImportsCheck = [ "py_nextbus" ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 ];
31
32 disabledTestPaths = [
33 # tests access the internet
34 "acceptance/client_test.py"
35 ];
36
37 meta = with lib; {
38 changelog = "https://github.com/ViViDboarder/py_nextbusnext/releases/tag/${src.tag}";
39 description = "Minimalistic Python client for the NextBus public API";
40 homepage = "https://github.com/ViViDboarder/py_nextbus";
41 license = licenses.mit;
42 maintainers = with maintainers; [ dotlambda ];
43 };
44}