mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
7ea62c59a2
Diff: https://github.com/bdraco/yalexs-ble/compare/refs/tags/v2.2.2...v2.2.3 Changelog: https://github.com/bdraco/yalexs-ble/blob/v2.2.3/CHANGELOG.md
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{ lib
|
|
, async-interrupt
|
|
, async-timeout
|
|
, bleak
|
|
, bleak-retry-connector
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, lru-dict
|
|
, poetry-core
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yalexs-ble";
|
|
version = "2.2.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bdraco";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Z8pPN9cO/8jv66yrG2EKRDXNjKPbYarOOB5t9ObMzek=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
async-interrupt
|
|
async-timeout
|
|
bleak
|
|
bleak-retry-connector
|
|
cryptography
|
|
lru-dict
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|