1{ lib
2, aiohttp
3, aioresponses
4, aiounittest
5, buildPythonPackage
6, fetchFromGitHub
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "airly";
12 version = "1.1.0";
13
14 src = fetchFromGitHub {
15 owner = "ak-ambi";
16 repo = "python-airly";
17 rev = "v${version}";
18 hash = "sha256-weliT/FYnRX+pzVAyRWFly7lfj2z7P+hpq5SIhyIgmI=";
19 };
20
21 propagatedBuildInputs = [ aiohttp ];
22
23 nativeCheckInputs = [
24 aioresponses
25 aiounittest
26 pytestCheckHook
27 ];
28
29 preCheck = ''
30 cd tests
31 '';
32
33 disabledTests = [
34 "InstallationsLoaderTestCase"
35 "MeasurementsSessionTestCase"
36 ];
37
38 pythonImportsCheck = [ "airly" ];
39
40 meta = with lib; {
41 description = "Python module for getting air quality data from Airly sensors";
42 homepage = "https://github.com/ak-ambi/python-airly";
43 license = with licenses; [ mit ];
44 maintainers = with maintainers; [ fab ];
45 };
46}