depot/third_party/nixpkgs/pkgs/development/python-modules/yalexs-ble/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

60 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.12.8";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-04Xl2TBs9RL+KWmJgUY+PDoYN4AAvrcWP7TJBEu5lNU=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
async-timeout
bleak
bleak-retry-connector
pycryptodome
];
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 ];
};
}