8056f9250c
The setuptools-scm packages gained a setup hook, that sets it to the derivation version automatically, so setting it to that manually has become redundant. This also affects downstream consumers of setuptools-scm, like hatch-vcs or flit-scm.
54 lines
986 B
Nix
54 lines
986 B
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
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
netifaces
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|