nixpkgs/pkgs/development/python-modules/pyenvisalink/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

42 lines
768 B
Nix

{ lib
, async-timeout
, buildPythonPackage
, colorlog
, fetchPypi
, pyserial
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyenvisalink";
version = "4.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-CQvomHYNMrf0oQjNCcLyisxIV2+3TOgEPzA9seZYsOs=";
};
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 ];
};
}