Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ld2410-ble / default.nix
blob774e79e5ca299d9234089a0825f373b1eca13d40
1 { lib
2 , async-timeout
3 , bleak
4 , bleak-retry-connector
5 , buildPythonPackage
6 , fetchFromGitHub
7 , poetry-core
8 , pytestCheckHook
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "ld2410-ble";
14   version = "0.2.0";
15   format = "pyproject";
17   disabled = pythonOlder "3.9";
19   src = fetchFromGitHub {
20     owner = "930913";
21     repo = pname;
22     rev = "refs/tags/v${version}";
23     hash = "sha256-wQnE2hNT0UOnPJbHq1eayIO8g0XRZvEH6V19DL6RqoA=";
24   };
26   postPatch = ''
27     substituteInPlace pyproject.toml \
28       --replace " --cov=ld2410_ble --cov-report=term-missing:skip-covered" ""
29   '';
31   nativeBuildInputs = [
32     poetry-core
33   ];
35   propagatedBuildInputs = [
36     async-timeout
37     bleak
38     bleak-retry-connector
39   ];
41   nativeCheckInputs = [
42     pytestCheckHook
43   ];
45   pythonImportsCheck = [
46     "ld2410_ble"
47   ];
49   meta = with lib; {
50     description = "Library for the LD2410B modules from HiLinks";
51     homepage = "https://github.com/930913/ld2410-ble";
52     changelog = "https://github.com/930913/ld2410-ble/blob/v${version}/CHANGELOG.md";
53     license = with licenses; [ mit ];
54     maintainers = with maintainers; [ fab ];
55   };