summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/bluezero/default.nix
blob: b301c40b3a7c903cb44aa0e516edb1eea7a03641 (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
45
46
47
48
49
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pygobject3,
  nix-update-script,
}:

buildPythonPackage (finalAttrs: {
  pname = "bluezero";
  version = "0.9.1";
  pyproject = true;
  __structuredAttrs = true;

  src = fetchFromGitHub {
    owner = "ukBaz";
    repo = "python-bluezero";
    tag = "v${finalAttrs.version}";
    hash = "sha256-H5760bPdA7NECiOWI7fLCxW3K7+c2L0Y3sa/E/krJJw=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    pygobject3
  ];

  pythonRelaxDeps = [ "pygobject" ];

  pythonImportsCheck = [
    "bluezero"
  ];

  # Most of the tests are failing due to a missing working dbus instance and bluetooth devices
  doCheck = false;

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "A simple Python interface to Bluez";
    homepage = "https://github.com/ukBaz/python-bluezero";
    changelog = "https://github.com/ukBaz/python-bluezero/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ drupol ];
  };
})