about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/airly/default.nix
blob: e75653fb684a6bf298106ada430c88913dbe9459 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "airly";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "ak-ambi";
    repo = "python-airly";
    rev = "v${version}";
    sha256 = "0an6nbl0i5pahxm6x4z03s9apzgqrw9zf7srjcs0r3y1ppicb4s6";
  };

  propagatedBuildInputs = [ aiohttp ];

  checkInputs = [ pytestCheckHook ];

  disabledTests = [
    "InstallationsLoaderTestCase"
    "MeasurementsSessionTestCase"
  ];
  pythonImportsCheck = [ "airly" ];

  meta = with lib; {
    description = "Python module for getting air quality data from Airly sensors";
    homepage = "https://github.com/ak-ambi/python-airly";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}