Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 47 lines 951 B view raw
1{ 2 lib, 3 async-timeout, 4 bleak-retry-connector, 5 bleak, 6 buildPythonPackage, 7 fetchFromGitHub, 8 poetry-core, 9 pytest-cov-stub, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "ld2410-ble"; 15 version = "0.2.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "930913"; 20 repo = "ld2410-ble"; 21 tag = "v${version}"; 22 hash = "sha256-wQnE2hNT0UOnPJbHq1eayIO8g0XRZvEH6V19DL6RqoA="; 23 }; 24 25 build-system = [ poetry-core ]; 26 27 dependencies = [ 28 async-timeout 29 bleak 30 bleak-retry-connector 31 ]; 32 33 nativeCheckInputs = [ 34 pytest-cov-stub 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ "ld2410_ble" ]; 39 40 meta = { 41 description = "Library for the LD2410B modules from HiLinks"; 42 homepage = "https://github.com/930913/ld2410-ble"; 43 changelog = "https://github.com/930913/ld2410-ble/blob/v${version}/CHANGELOG.md"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ fab ]; 46 }; 47}