nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.0 kB view raw
1{ 2 lib, 3 aiohttp, 4 async-timeout, 5 buildPythonPackage, 6 fetchPypi, 7 pytest-asyncio, 8 pytest-httpserver, 9 pytestCheckHook, 10 setuptools-scm, 11 voluptuous, 12}: 13 14buildPythonPackage rec { 15 pname = "solax"; 16 version = "3.2.4"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-60FIDhd60zaWcwPnq7P7WxuXQc1MivWNTctj3TuZF3k="; 22 }; 23 24 build-system = [ setuptools-scm ]; 25 26 dependencies = [ 27 aiohttp 28 async-timeout 29 voluptuous 30 ]; 31 32 nativeCheckInputs = [ 33 pytest-asyncio 34 pytest-httpserver 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ "solax" ]; 39 40 disabledTests = [ 41 # Tests require network access 42 "test_discovery" 43 "test_smoke" 44 ]; 45 46 meta = { 47 description = "Python wrapper for the Solax Inverter API"; 48 homepage = "https://github.com/squishykid/solax"; 49 changelog = "https://github.com/squishykid/solax/releases/tag/v${version}"; 50 license = lib.licenses.mit; 51 maintainers = with lib.maintainers; [ fab ]; 52 }; 53}