evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / elkm1-lib / default.nix
blobd97651c8e4a6e1bebd40804783981b785fee748b
2   lib,
3   async-timeout,
4   buildPythonPackage,
5   fetchFromGitHub,
6   hatchling,
7   pyserial-asyncio-fast,
8   pytest-asyncio,
9   pytestCheckHook,
10   pythonOlder,
13 buildPythonPackage rec {
14   pname = "elkm1-lib";
15   version = "2.2.10";
16   pyproject = true;
18   disabled = pythonOlder "3.11";
20   src = fetchFromGitHub {
21     owner = "gwww";
22     repo = "elkm1";
23     rev = "refs/tags/${version}";
24     hash = "sha256-8B3icNW1QTTjFeWllPKzVgRFz+gUzUV6o3wOBXx2Zws=";
25   };
27   build-system = [ hatchling ];
29   dependencies = [
30     async-timeout
31     pyserial-asyncio-fast
32   ];
34   nativeCheckInputs = [
35     pytest-asyncio
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [ "elkm1_lib" ];
41   meta = with lib; {
42     description = "Python module for interacting with ElkM1 alarm/automation panel";
43     homepage = "https://github.com/gwww/elkm1";
44     changelog = "https://github.com/gwww/elkm1/blob/${version}/CHANGELOG.md";
45     license = licenses.mit;
46     maintainers = with maintainers; [ fab ];
47   };