Files
nixpkgs/pkgs/development/python-modules/aiooncue/default.nix

46 lines
933 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "aiooncue";
version = "0.3.9";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "bdraco";
repo = "aiooncue";
tag = version;
hash = "sha256-0Cdt/rUsl4OMLUTSC8WJXEiwzrhyn7JJIcVE/55LlgU=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"setuptools>=75.8.0"' ""
'';
build-system = [ setuptools ];
dependencies = [ aiohttp ];
# Tests are out-dated
doCheck = false;
pythonImportsCheck = [ "aiooncue" ];
meta = with lib; {
description = "Module to interact with the Kohler Oncue API";
homepage = "https://github.com/bdraco/aiooncue";
changelog = "https://github.com/bdraco/aiooncue/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}