2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
poetry-core,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
bitarray,
|
|
|
|
crc,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pytestCheckHook,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "airtouch5py";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "0.2.10";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "danzel";
|
|
|
|
repo = "airtouch5py";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-8QMyp/Y60V64k1V8Hze5FsgpfHr8ZT1Xj/kQDP7CtjI=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
pythonRelaxDeps = [ "crc" ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
bitarray
|
|
|
|
crc
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "airtouch5py" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/danzel/airtouch5py/releases/tag/${version}";
|
|
|
|
description = "Python client for the airtouch 5";
|
|
|
|
homepage = "https://github.com/danzel/airtouch5py";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
|
|
};
|
|
|
|
}
|