evcc: 0.131.8 -> 0.131.10 (#364658)
[NixPkgs.git] / pkgs / development / python-modules / ld2410-ble / default.nix
blobb680db42a4d927584b60f87f658d0b510383db82
2   lib,
3   async-timeout,
4   bleak,
5   bleak-retry-connector,
6   buildPythonPackage,
7   fetchFromGitHub,
8   poetry-core,
9   pytestCheckHook,
10   pythonOlder,
13 buildPythonPackage rec {
14   pname = "ld2410-ble";
15   version = "0.2.0";
16   format = "pyproject";
18   disabled = pythonOlder "3.9";
20   src = fetchFromGitHub {
21     owner = "930913";
22     repo = pname;
23     rev = "refs/tags/v${version}";
24     hash = "sha256-wQnE2hNT0UOnPJbHq1eayIO8g0XRZvEH6V19DL6RqoA=";
25   };
27   postPatch = ''
28     substituteInPlace pyproject.toml \
29       --replace " --cov=ld2410_ble --cov-report=term-missing:skip-covered" ""
30   '';
32   nativeBuildInputs = [ poetry-core ];
34   propagatedBuildInputs = [
35     async-timeout
36     bleak
37     bleak-retry-connector
38   ];
40   nativeCheckInputs = [ pytestCheckHook ];
42   pythonImportsCheck = [ "ld2410_ble" ];
44   meta = with lib; {
45     description = "Library for the LD2410B modules from HiLinks";
46     homepage = "https://github.com/930913/ld2410-ble";
47     changelog = "https://github.com/930913/ld2410-ble/blob/v${version}/CHANGELOG.md";
48     license = with licenses; [ mit ];
49     maintainers = with maintainers; [ fab ];
50   };