about summary refs log tree commit diff
path: root/pkgs/development/python-modules/huum/default.nix
blob: 815765b8a40a45dc12e1e618a12085be357477e3 (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
45
{ lib
, aiohttp
, buildPythonPackage
, fetchPypi
, poetry-core
, pydantic
, pythonOlder
}:

buildPythonPackage rec {
  pname = "huum";
  version = "0.5.0";
  format = "pyproject";

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-ldhAg9zGCEYvya01s6AHzALI4dS+d0R73c62YZyk19M=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    aiohttp
    pydantic
  ];

  # Tests are not shipped and source not tagged
  # https://github.com/frwickst/pyhuum/issues/2
  doCheck = false;

  pythonImportsCheck = [
    "huum"
  ];

  meta = with lib; {
    description = "Library for for Huum saunas";
    homepage = "https://github.com/frwickst/pyhuum";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}