Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / bless / default.nix
blob3f24aef8bf5397b0f128cbd49530b440a5c7dca2
1 { lib
2 , aioconsole
3 , bleak
4 , buildPythonPackage
5 , dbus-next
6 , fetchFromGitHub
7 , numpy
8 , pytest-asyncio
9 , pytestCheckHook
10 , pythonOlder
11 , setuptools
14 buildPythonPackage rec {
15   pname = "bless";
16   version = "0.2.6";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "kevincar";
23     repo = "bless";
24     rev = "refs/tags/v${version}";
25     hash = "sha256-dAdA+d75iE6v6t4mfgvwhRsIARLW+IqCGmaMABaDlZg=";
26   };
28   postPatch = ''
29     sed -i "/pysetupdi/d" setup.py
30   '';
32   nativeBuildInputs = [
33     setuptools
34   ];
36   propagatedBuildInputs = [
37     bleak
38     dbus-next
39   ];
41   nativeCheckInputs = [
42     aioconsole
43     numpy
44     pytest-asyncio
45     pytestCheckHook
46   ];
48   pythonImportsCheck = [
49     "bless"
50   ];
52   meta = with lib; {
53     description = "Library for creating a BLE Generic Attribute Profile (GATT) server";
54     homepage = "https://github.com/kevincar/bless";
55     changelog = "https://github.com/kevincar/bless/releases/tag/v${version}";
56     license = licenses.mit;
57     maintainers = with maintainers; [ fab ];
58   };