45 lines
972 B
Nix
45 lines
972 B
Nix
{
|
|||
lib,
|
|||
aiohttp,
|
|||
buildPythonPackage,
|
|||
fetchFromGitHub,
|
|||
pytest-asyncio,
|
|||
pytestCheckHook,
|
|||
pythonOlder,
|
|||
setuptools,
|
|||
}:
|
|||
|
|||
buildPythonPackage rec {
|
|||
pname = "pypalazzetti";
|
|||
version = "0.1.14";
|
|||
pyproject = true;
|
|||
|
|||
disabled = pythonOlder "3.10";
|
|||
|
|||
src = fetchFromGitHub {
|
|||
owner = "dotvav";
|
|||
repo = "py-palazzetti-api";
|
|||
rev = "refs/tags/v${version}";
|
|||
hash = "sha256-TDD3/UghNtsSAWV0k1I4MOjTFZB+sBqGgpKwy1p9Gx4=";
|
|||
};
|
|||
|
|||
build-system = [ setuptools ];
|
|||
|
|||
dependencies = [ aiohttp ];
|
|||
|
|||
nativeCheckInputs = [
|
|||
pytest-asyncio
|
|||
pytestCheckHook
|
|||
];
|
|||
|
|||
pythonImportsCheck = [ "pypalazzetti" ];
|
|||
|
|||
meta = {
|
|||
description = "Library to access and control a Palazzetti stove through a Connection Box";
|
|||
homepage = "https://github.com/dotvav/py-palazzetti-api";
|
|||
changelog = "https://github.com/dotvav/py-palazzetti-api/blob/${src.rev}/CHANGELOG.md";
|
|||
license = lib.licenses.mit;
|
|||
maintainers = with lib.maintainers; [ fab ];
|
|||
};
|
|||
}
|