about summary refs log tree commit diff
path: root/pkgs/development/python-modules/asmog/default.nix
blob: a1d8c340ba6893a5fffadef21bfc0c13abf5a715 (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
{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchPypi
, pythonOlder
}:

buildPythonPackage rec {
  pname = "asmog";
  version = "0.0.6";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "14b8hdxcks6qyrqpp4mm77fvzznbskqn7fw9qgwgcqx81pg45iwk";
  };

  propagatedBuildInputs = [
    aiohttp
    async-timeout
  ];

  # Project doesn't ship the tests
  # https://github.com/kstaniek/python-ampio-smog-api/issues/2
  doCheck = false;

  pythonImportsCheck = [ "asmog" ];

  meta = with lib; {
    description = "Python module for Ampio Smog Sensors";
    homepage = "https://github.com/kstaniek/python-ampio-smog-api";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}