python310Packages.kegtron-ble: init at 0.4.0
This commit is contained in:
parent
4e62f9810a
commit
e63a3267ca
55
pkgs/development/python-modules/kegtron-ble/default.nix
Normal file
55
pkgs/development/python-modules/kegtron-ble/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user