summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyprobeplus/default.nix
blob: 2e95175f44a32a1c2ebe7060483f3b43f73b5d72 (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
{
  bleak,
  bleak-retry-connector,
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pyprobeplus";
  version = "1.1.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pantherale0";
    repo = "pyprobeplus";
    tag = version;
    hash = "sha256-CJbQs0xZHdXNPX71G1KrrHHV58gXaQsUHGcX9P8E+iY=";
  };

  build-system = [ setuptools ];

  dependencies = [
    bleak
    bleak-retry-connector
  ];

  pythonImportsCheck = [ "pyprobeplus" ];

  # upstream has no tests
  doCheck = false;

  meta = {
    changelog = "https://github.com/pantherale0/pyprobeplus/releases/tag/${src.tag}";
    description = "Generic library to interact with a Probe Plus BLE device";
    homepage = "https://github.com/pantherale0/pyprobeplus";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}