summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/btsocket/default.nix
blob: fcb612d8c4822d410fd3ed76ae2fd98f02fd6379 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "btsocket";
  version = "0.3.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "ukBaz";
    repo = "python-btsocket";
    tag = "v${version}";
    hash = "sha256-/T89GZJth7pBGQuN1ytCf649oWv7aZcfPHjYoftbLw8=";
  };

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "btsocket" ];

  meta = {
    description = "Library to interact with the Bluez Bluetooth Management API";
    homepage = "https://github.com/ukBaz/python-btsocket";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fab ];
  };
}