mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
0856aceb9f
Diff: https://github.com/bdraco/yalexs-ble/compare/refs/tags/v1.10.3...v1.10.3 Changelog: https://github.com/bdraco/yalexs-ble/blob/v1.10.3/CHANGELOG.md
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{ lib
|
|
, async-timeout
|
|
, bleak
|
|
, bleak-retry-connector
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pycryptodome
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yalexs-ble";
|
|
version = "1.10.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bdraco";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ybsMrqm1ikHcc2hddHPWJyVnjowiaW3we93uO9BWylQ=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/bdraco/yalexs-ble/blob/v${version}/CHANGELOG.md";
|
|
license = with licenses; [ gpl3Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|