summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/medcom-ble/default.nix
blob: 12462859840c4f0f64843bad4fa6b05dc4be7a37 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  poetry-core,
  bleak,
  bleak-retry-connector,
}:

buildPythonPackage rec {
  pname = "medcom-ble";
  version = "0.1.1";
  pyproject = true;

  src = fetchPypi {
    pname = "medcom_ble";
    inherit version;
    hash = "sha256-PQ0ZOFLGVllz/Jxw2CN6D5Ypza5/Ck3dtk3DuB+eHiA=";
  };

  build-system = [
    poetry-core
  ];

  dependencies = [
    bleak
    bleak-retry-connector
  ];

  # Package has no tests
  doCheck = false;

  pythonImportsCheck = [
    "medcom_ble"
  ];

  meta = {
    description = "Library to communicate with Medcom BLE radiation monitors";
    homepage = "https://github.com/elafargue/medcom-ble";
    changelog = "https://github.com/elafargue/medcom-ble/blob/main/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}