Merge pull request #186062 from fabaff/yalexs-ble
python310Packages.yalexs-ble: init at 1.1.3
This commit is contained in:
commit
4aad492758
2 changed files with 61 additions and 0 deletions
59
pkgs/development/python-modules/yalexs-ble/default.nix
Normal file
59
pkgs/development/python-modules/yalexs-ble/default.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{ lib
|
||||
, async-timeout
|
||||
, bleak
|
||||
, bleak-retry-connector
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pycryptodome
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "yalexs-ble";
|
||||
version = "1.1.3";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bdraco";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-+0r0Zg3Ge4Mndro5hdTPAjbCBJhUac3LUbQ1BgBr8yE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async-timeout
|
||||
bleak
|
||||
bleak-retry-connector
|
||||
pycryptodome
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=yalexs_ble --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"yalexs_ble"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for Yale BLE devices";
|
||||
homepage = "https://github.com/bdraco/yalexs-ble";
|
||||
license = with licenses; [ gpl3Only ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -11658,6 +11658,8 @@ in {
|
|||
|
||||
yalexs = callPackage ../development/python-modules/yalexs { };
|
||||
|
||||
yalexs-ble = callPackage ../development/python-modules/yalexs-ble { };
|
||||
|
||||
yamale = callPackage ../development/python-modules/yamale { };
|
||||
|
||||
yamlfix = callPackage ../development/python-modules/yamlfix { };
|
||||
|
|
Loading…
Reference in a new issue