summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyacaia-async/default.nix
blob: 35fd7839b60953e1b58a8b2d5512486cd8429265 (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
, bleak
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
, wheel
}:

buildPythonPackage rec {
  pname = "pyacaia-async";
  version = "0.0.7";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    pname = "pyacaia_async";
    inherit version;
    hash = "sha256-G3+mp/+skczj/GpvrzI/vSaZ/RC3vQz2d/hiD5WpGzM=";
  };

  nativeBuildInputs = [
    setuptools
    wheel
  ];

  propagatedBuildInputs = [
    bleak
  ];

  # Module has no tests in PyPI releases
  doCheck = false;

  pythonImportsCheck = [
    "pyacaia_async"
  ];

  meta = with lib; {
    description = "Module to interact with Acaia scales";
    homepage = "https://github.com/zweckj/pyacaia_async";
    license = with licenses; [ gpl3Only mit ];
    maintainers = with maintainers; [ fab ];
  };
}