fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
40 lines
771 B
Nix
40 lines
771 B
Nix
{
|
|
lib,
|
|
async-timeout,
|
|
buildPythonPackage,
|
|
colorlog,
|
|
fetchPypi,
|
|
pyserial,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyenvisalink";
|
|
version = "4.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-b5v/7+B/yyCnKrWCs0scAuIgV1wSLk6cVa57n+HncUw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|