74492c8629
GitOrigin-RevId: cb372c3b8880e504b06946e8fb2ca9777c685505
43 lines
877 B
Nix
43 lines
877 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, python-dateutil
|
|
, aiohttp
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyisy";
|
|
version = "3.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "automicus";
|
|
repo = "PyISY";
|
|
rev = "v${version}";
|
|
sha256 = "1mj9na64nq0ls8d9x3304ai7lixaglpr646p3m2a4s5qlmm4il3m";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "setuptools-git-version" "" \
|
|
--replace 'version_format="{tag}"' 'version="${version}"'
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
python-dateutil
|
|
requests
|
|
];
|
|
|
|
# no tests implemented
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyisy" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to talk to ISY994 from UDI";
|
|
homepage = "https://github.com/automicus/PyISY";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|