b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
36 lines
723 B
Nix
36 lines
723 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "btsocket";
|
|
version = "0.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ukBaz";
|
|
repo = "python-btsocket";
|
|
rev = "v${version}";
|
|
hash = "sha256-IqlbFYbEyJPlcmT3DIQIwsjQEAGeIGRtFNx4jWwNtjE=";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"btsocket"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to interact with the Bluez Bluetooth Management API";
|
|
homepage = "https://github.com/ukBaz/python-btsocket";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|