depot/third_party/nixpkgs/pkgs/development/python-modules/yalexs-ble/default.nix
Default email ed0c4a69f0 Project import generated by Copybara.
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
2023-03-31 00:05:00 +02:00

60 lines
1.2 KiB
Nix

{ lib
, async-timeout
, bleak
, bleak-retry-connector
, buildPythonPackage
, cryptography
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "yalexs-ble";
version = "2.1.14";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "bdraco";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-aTtcp6u+/fPHRB/FShdzfCv5haja+Vyo/WLm7GLvadw=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
async-timeout
bleak
bleak-retry-connector
cryptography
];
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 ];
};
}