nav: init at 1.2.1 (#356071)
[NixPkgs.git] / pkgs / development / python-modules / velbus-aio / default.nix
blobf43ff25f655545522f941fda2149021287ee5cf0
2   lib,
3   aiofile,
4   backoff,
5   buildPythonPackage,
6   fetchFromGitHub,
7   pythonOlder,
8   pyserial,
9   pyserial-asyncio-fast,
10   pytest-asyncio,
11   pytestCheckHook,
12   setuptools,
15 buildPythonPackage rec {
16   pname = "velbus-aio";
17   version = "2024.11.1";
18   pyproject = true;
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "Cereal2nd";
24     repo = "velbus-aio";
25     rev = "refs/tags/${version}";
26     hash = "sha256-hYtZgr5HJj1zjiCXBK63086ke/oWhO9CyIvnN/JUPm4=";
27     fetchSubmodules = true;
28   };
30   build-system = [ setuptools ];
32   dependencies = [
33     aiofile
34     backoff
35     pyserial
36     pyserial-asyncio-fast
37   ];
39   nativeCheckInputs = [
40     pytest-asyncio
41     pytestCheckHook
42   ];
44   preCheck = ''
45     export HOME=$(mktemp -d)
46   '';
48   pythonImportsCheck = [ "velbusaio" ];
50   meta = with lib; {
51     description = "Python library to support the Velbus home automation system";
52     homepage = "https://github.com/Cereal2nd/velbus-aio";
53     changelog = "https://github.com/Cereal2nd/velbus-aio/releases/tag/${version}";
54     license = with licenses; [ asl20 ];
55     maintainers = with maintainers; [ fab ];
56   };