Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / btsocket / default.nix
blobe1c1f8a3288759d1da47dbc97d4a94f59a6ccda2
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "btsocket";
10   version = "0.2.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.8";
15   src = fetchFromGitHub {
16     owner = "ukBaz";
17     repo = "python-btsocket";
18     rev = "v${version}";
19     hash = "sha256-IqlbFYbEyJPlcmT3DIQIwsjQEAGeIGRtFNx4jWwNtjE=";
20   };
22   nativeCheckInputs = [
23     pytestCheckHook
24   ];
26   pythonImportsCheck = [
27     "btsocket"
28   ];
30   meta = with lib; {
31     description = "Library to interact with the Bluez Bluetooth Management API";
32     homepage = "https://github.com/ukBaz/python-btsocket";
33     license = with licenses; [ mit ];
34     maintainers = with maintainers; [ fab ];
35   };