nixpkgs/pkgs/development/python-modules/velbus-aio/default.nix
2022-02-11 23:15:59 +01:00

47 lines
866 B
Nix

{ lib
, backoff
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pyserial
, pyserial-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "velbus-aio";
version = "2022.2.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Cereal2nd";
repo = pname;
rev = version;
sha256 = "sha256-oWHyEw1DjMynLPAARcVaqsFccpnTk1/7gpq+8TU95d0=";
fetchSubmodules = true;
};
propagatedBuildInputs = [
backoff
pyserial
pyserial-asyncio
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"velbusaio"
];
meta = with lib; {
description = "Python library to support the Velbus home automation system";
homepage = "https://github.com/Cereal2nd/velbus-aio";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}