nixpkgs/pkgs/development/python-modules/aioairzone/default.nix

47 lines
877 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "aioairzone";
version = "0.6.8";
format = "pyproject";
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Noltari";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-aCf0IO70t/QMmDmIwBKN3Um1HgHjHn1r6Dze/pWaQ5M=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"aioairzone"
];
meta = with lib; {
description = "Module to control AirZone devices";
homepage = "https://github.com/Noltari/aioairzone";
changelog = "https://github.com/Noltari/aioairzone/releases/tag/${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}