7bc014aa9c
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, aiohttp
|
|
, netifaces
|
|
, pytest-aio
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-izone";
|
|
version = "1.2.9";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Swamp-Ig";
|
|
repo = "pizone";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-0rj+tKn2pbFe+nczTMGLwIwmc4jCznGGF4/IMjlEvQg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
netifaces
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-aio
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
doCheck = false; # most tests access network
|
|
|
|
pythonImportsCheck = [
|
|
"pizone"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python interface to the iZone airconditioner controller";
|
|
homepage = "https://github.com/Swamp-Ig/pizone";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|