python310Packages.kegtron-ble: init at 0.4.0

This commit is contained in:
Fabian Affolter 2022-10-02 16:13:18 +02:00
parent 4e62f9810a
commit e63a3267ca
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,55 @@
{ lib
, bluetooth-data-tools
, bluetooth-sensor-state-data
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, sensor-state-data
}:
buildPythonPackage rec {
pname = "kegtron-ble";
version = "0.4.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "v${version}";
hash = "sha256-O5I5shW8nL2RAQptS2Bp/GI/4L6o0xXXmwYvRq0MM8o=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
bluetooth-data-tools
bluetooth-sensor-state-data
sensor-state-data
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=kegtron_ble --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"kegtron_ble"
];
meta = with lib; {
description = "Library for Kegtron BLE devices";
homepage = "https://github.com/Bluetooth-Devices/kegtron-ble";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -4988,6 +4988,8 @@ in {
keepkey = callPackage ../development/python-modules/keepkey { };
kegtron-ble = callPackage ../development/python-modules/kegtron-ble { };
keras-applications = callPackage ../development/python-modules/keras-applications { };
keras = callPackage ../development/python-modules/keras { };