nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 httpx,
6 poetry-core,
7 pytest-asyncio,
8 pytest-httpx,
9 pytestCheckHook,
10 yarl,
11}:
12
13buildPythonPackage rec {
14 pname = "elmax";
15 version = "0.1.5";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "home-assistant-ecosystem";
20 repo = "python-elmax";
21 rev = version;
22 hash = "sha256-EcYEpYv+EwwEfW8Sy7aQjFAPpmsA6qVbmlwrPdxdnEw=";
23 };
24
25 nativeBuildInputs = [ poetry-core ];
26
27 propagatedBuildInputs = [
28 httpx
29 yarl
30 ];
31
32 nativeCheckInputs = [
33 pytest-asyncio
34 pytest-httpx
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "elmax" ];
39
40 meta = {
41 description = "Python API client for the Elmax Cloud services";
42 mainProgram = "poetry-template";
43 homepage = "https://github.com/home-assistant-ecosystem/python-elmax";
44 license = with lib.licenses; [ asl20 ];
45 maintainers = with lib.maintainers; [ fab ];
46 };
47}