Robert Schütz
2025-03-30 19:38:22 -07:00
parent 25f202e7c9
commit c5efe798bc

View File

@@ -5,23 +5,20 @@
colorlog,
fetchFromGitHub,
python-dateutil,
pythonOlder,
requests,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pyisy";
version = "3.1.14";
format = "setuptools";
disabled = pythonOlder "3.7";
version = "3.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "automicus";
repo = "PyISY";
tag = "v${version}";
hash = "sha256-OvWdKr8RlXRnAUMHSPhJDacvKeRa8QGPmGPQWLG2ouk=";
hash = "sha256-rXSkDG7AK8+r4x3ttk7GJw1hH+xLLVx0gTGK0PvQNfE=";
};
postPatch = ''
@@ -29,9 +26,9 @@ buildPythonPackage rec {
--replace 'version_format="{tag}"' 'version="${version}"'
'';
nativeBuildInputs = [ setuptools-scm ];
build-system = [ setuptools-scm ];
propagatedBuildInputs = [
dependencies = [
aiohttp
colorlog
python-dateutil
@@ -46,7 +43,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python module to talk to ISY994 from UDI";
homepage = "https://github.com/automicus/PyISY";
changelog = "https://github.com/automicus/PyISY/releases/tag/v${version}";
changelog = "https://github.com/automicus/PyISY/releases/tag/${src.tag}";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};