summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyaussiebb/default.nix
blob: ccee1ff51e8404e71533aba4544e5ccb216eacb2 (plain) (blame)
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
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, loguru
, requests
}:

buildPythonPackage rec {
  pname = "pyaussiebb";
  version = "0.0.9";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "yaleman";
    repo = "aussiebb";
    rev = "v${version}";
    hash = "sha256-DMU29dTqDaPLQS20iuHIph6mhBdj6ni3+MA9KkRMtzg=";
  };

  propagatedBuildInputs = [
    aiohttp
    requests
    loguru
  ];

  # Tests require network access
  # https://github.com/yaleman/aussiebb/issues/6
  doCheck = false;

  pythonImportsCheck = [
    "aussiebb"
  ];

  meta = with lib; {
    description = "Module for interacting with the Aussie Broadband APIs";
    homepage = "https://github.com/yaleman/aussiebb";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}