792b51d22f
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
41 lines
770 B
Nix
41 lines
770 B
Nix
{ lib
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, colorlog
|
|
, fetchPypi
|
|
, pyserial
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyenvisalink";
|
|
version = "4.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-YUYiCid+XAlfytkyz4Td5CG1zBOrsLx4/nuRubRE14w=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
async-timeout
|
|
colorlog
|
|
pyserial
|
|
];
|
|
|
|
# Tests require an Envisalink device
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"pyenvisalink"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python interface for Envisalink 2DS/3 Alarm API";
|
|
homepage = "https://github.com/Cinntax/pyenvisalink";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|