summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/py-nextbusnext/default.nix
blob: 4c33145571b52009c475ac511d9bc2331f3f981b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  requests,
  setuptools,
}:

buildPythonPackage rec {
  pname = "py-nextbusnext";
  version = "2.3.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ViViDboarder";
    repo = "py_nextbus";
    tag = "v${version}";
    hash = "sha256-zTOP2wj1ZseXYbWGNgehIkgZQkV4u74yjI0mhn35e4E=";
  };

  build-system = [ setuptools ];

  dependencies = [ requests ];

  pythonImportsCheck = [ "py_nextbus" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTestPaths = [
    # tests access the internet
    "acceptance/client_test.py"
  ];

  meta = {
    changelog = "https://github.com/ViViDboarder/py_nextbusnext/releases/tag/${src.tag}";
    description = "Minimalistic Python client for the NextBus public API";
    homepage = "https://github.com/ViViDboarder/py_nextbus";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}