Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 62 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, async-timeout, asyncstdlib, attrs, buildPythonPackage, defusedxml, fetchFromGitHub, ftfy, httpx, netifaces, pytest-asyncio, pytest-httpx, pytest-timeout, pytestCheckHook, pythonOlder, setuptools,}:
buildPythonPackage rec { pname = "denonavr"; version = "1.1.1"; pyproject = true;
src = fetchFromGitHub { owner = "ol-iver"; repo = "denonavr"; tag = version; hash = "sha256-7fUHSnhqY5nAAAniAHs6qjuc8iYuxcg1CzPD+WyUCZQ="; };
pythonRelaxDeps = [ "defusedxml" ];
build-system = [ setuptools ];
dependencies = [ asyncstdlib attrs defusedxml ftfy httpx netifaces ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
nativeCheckInputs = [ pytest-asyncio pytestCheckHook pytest-httpx pytest-timeout ];
pythonImportsCheck = [ "denonavr" ];
meta = with lib; { description = "Automation Library for Denon AVR receivers"; homepage = "https://github.com/ol-iver/denonavr"; changelog = "https://github.com/ol-iver/denonavr/releases/tag/${src.tag}"; license = licenses.mit; maintainers = with maintainers; [ ]; };}