depot/third_party/nixpkgs/pkgs/development/python-modules/btsocket/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

33 lines
724 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=";
};
nativeCheckInputs = [ 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 ];
};
}