mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
42 lines
798 B
Nix
42 lines
798 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest-asyncio
|
|
, pytest-cov
|
|
, pytest-httpserver
|
|
, pytestCheckHook
|
|
, setuptools-scm
|
|
, voluptuous
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "solax";
|
|
version = "0.2.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0h7q6y2cdkj9dqxw0k7pgz7a7vbpq1qw50pmy9rajphhv2600cbc";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ aiohttp voluptuous ];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytest-cov
|
|
pytest-httpserver
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "solax" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python wrapper for the Solax Inverter API";
|
|
homepage = "https://github.com/squishykid/solax";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|