2021-04-12 18:23:04 +00:00
|
|
|
{ lib
|
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, colorlog
|
|
|
|
, fetchPypi
|
|
|
|
, pyserial
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyenvisalink";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "4.2";
|
2021-04-12 18:23:04 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-03 16:56:52 +00:00
|
|
|
sha256 = "64f128212ba0257ae8e47612891a2dae7de2c155c81326257582d565f53778ad";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|