nixpkgs/pkgs/development/python-modules/hyperion-py/default.nix

47 lines
987 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-aiohttp,
pytest-asyncio,
pytest-cov-stub,
pytest-timeout,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "hyperion-py";
version = "0.7.6";
pyproject = true;
src = fetchFromGitHub {
owner = "dermotduffy";
repo = "hyperion-py";
tag = "v${version}";
hash = "sha256-14taFSrtmgTBiie0eY2fSRkZndJSZ4GJNRx3MonrTzs=";
};
build-system = [ poetry-core ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
pytest-asyncio
pytest-aiohttp
pytest-cov-stub
pytest-timeout
pytestCheckHook
];
pythonImportsCheck = [ "hyperion" ];
meta = with lib; {
description = "Python package for Hyperion Ambient Lighting";
homepage = "https://github.com/dermotduffy/hyperion-py";
changelog = "https://github.com/dermotduffy/hyperion-py/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}