nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchPypi
5, pytest-asyncio
6, pytest-cov
7, pytest-httpserver
8, pytestCheckHook
9, setuptools-scm
10, voluptuous
11}:
12
13buildPythonPackage rec {
14 pname = "solax";
15 version = "0.2.9";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "e66db0c5d4ec840b047e574f0325ea01862d1f5563a844510541b35faa55f392";
20 };
21
22 nativeBuildInputs = [ setuptools-scm ];
23
24 propagatedBuildInputs = [ aiohttp voluptuous ];
25
26 checkInputs = [
27 pytest-asyncio
28 pytest-cov
29 pytest-httpserver
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [ "solax" ];
34
35 meta = with lib; {
36 description = "Python wrapper for the Solax Inverter API";
37 homepage = "https://github.com/squishykid/solax";
38 license = with licenses; [ mit ];
39 maintainers = with maintainers; [ fab ];
40 };
41}