depot/third_party/nixpkgs/pkgs/development/python-modules/pyenvisalink/default.nix
Default email 1a0302a145 Project import generated by Copybara.
GitOrigin-RevId: 311ceed827f531f88f46222920cd1ebb2c101f73
2021-04-12 20:23:04 +02:00

36 lines
738 B
Nix

{ lib
, async-timeout
, buildPythonPackage
, colorlog
, fetchPypi
, pyserial
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyenvisalink";
version = "4.1";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "1h30gmmynihmjkd107skk2gpi210b6gfdahwqmydyj5isxrvzmq2";
};
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 ];
};
}