56 lines
982 B
Nix
56 lines
982 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
poetry-core,
|
|
|
|
# dependencies
|
|
bitarray,
|
|
crc,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "airtouch5py";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "danzel";
|
|
repo = "airtouch5py";
|
|
tag = version;
|
|
hash = "sha256-St2FjyUXyTmy0shQfUzuB+lUSaadEyjdNJJkQA4aCxQ=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
pythonRelaxDeps = [
|
|
"bitarray"
|
|
"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 ];
|
|
};
|
|
}
|