Merge pull request #209464 from fabaff/bluetooth-data-tools-bump
python310Packages.ld2410-ble: init at 0.1.1
This commit is contained in:
commit
ec741f2536
2 changed files with 58 additions and 0 deletions
56
pkgs/development/python-modules/ld2410-ble/default.nix
Normal file
56
pkgs/development/python-modules/ld2410-ble/default.nix
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
{ lib
|
||||||
|
, async-timeout
|
||||||
|
, bleak
|
||||||
|
, bleak-retry-connector
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, poetry-core
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "ld2410-ble";
|
||||||
|
version = "0.1.1";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "930913";
|
||||||
|
repo = pname;
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-D8Z3OXlXWsaN0Ck9gx//J9TCaQmirYDbaXK7aTpI7ns=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
async-timeout
|
||||||
|
bleak
|
||||||
|
bleak-retry-connector
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace " --cov=ld2410_ble --cov-report=term-missing:skip-covered" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"ld2410_ble"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Library for the LD2410B modules from HiLinks";
|
||||||
|
homepage = "https://github.com/930913/ld2410-ble";
|
||||||
|
changelog = "https://github.com/930913/ld2410-ble/blob/v${version}/CHANGELOG.md";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -5147,6 +5147,8 @@ self: super: with self; {
|
||||||
|
|
||||||
lcov_cobertura = callPackage ../development/python-modules/lcov_cobertura { };
|
lcov_cobertura = callPackage ../development/python-modules/lcov_cobertura { };
|
||||||
|
|
||||||
|
ld2410-ble = callPackage ../development/python-modules/ld2410-ble { };
|
||||||
|
|
||||||
ldap3 = callPackage ../development/python-modules/ldap3 { };
|
ldap3 = callPackage ../development/python-modules/ldap3 { };
|
||||||
|
|
||||||
ldapdomaindump = callPackage ../development/python-modules/ldapdomaindump { };
|
ldapdomaindump = callPackage ../development/python-modules/ldapdomaindump { };
|
||||||
|
|
Loading…
Reference in a new issue