Merge pull request #151315 from fabaff/omnikinverter

python3Packages.omnikinverter: init at 0.6.2

authored by Fabian Affolter and committed by GitHub 32c7fb30 fbd4cc0a

+61
+59
pkgs/development/python-modules/omnikinverter/default.nix
··· 1 + { lib 2 + , aiohttp 3 + , aresponses 4 + , buildPythonPackage 5 + , fetchFromGitHub 6 + , poetry-core 7 + , pytest-asyncio 8 + , pytestCheckHook 9 + , pythonOlder 10 + , yarl 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "omnikinverter"; 15 + version = "0.6.2"; 16 + format = "pyproject"; 17 + 18 + disabled = pythonOlder "3.7"; 19 + 20 + src = fetchFromGitHub { 21 + owner = "klaasnicolaas"; 22 + repo = "python-omnikinverter"; 23 + rev = "v${version}"; 24 + sha256 = "sha256-NnwjiaFUi2vzORu8sndtfdVpZEAIMCvT+9VEr2ZOx3k="; 25 + }; 26 + 27 + nativeBuildInputs = [ 28 + poetry-core 29 + ]; 30 + 31 + propagatedBuildInputs = [ 32 + aiohttp 33 + yarl 34 + ]; 35 + 36 + checkInputs = [ 37 + aresponses 38 + pytest-asyncio 39 + pytestCheckHook 40 + ]; 41 + 42 + postPatch = '' 43 + # Upstream doesn't set a version for the pyproject.toml 44 + substituteInPlace pyproject.toml \ 45 + --replace "0.0.0" "${version}" \ 46 + --replace "--cov" "" 47 + ''; 48 + 49 + pythonImportsCheck = [ 50 + "omnikinverter" 51 + ]; 52 + 53 + meta = with lib; { 54 + description = "Python module for the Omnik Inverter"; 55 + homepage = "https://github.com/klaasnicolaas/python-omnikinverter"; 56 + license = with licenses; [ mit ]; 57 + maintainers = with maintainers; [ fab ]; 58 + }; 59 + }
+2
pkgs/top-level/python-packages.nix
··· 5433 5433 5434 5434 omegaconf = callPackage ../development/python-modules/omegaconf { }; 5435 5435 5436 + omnikinverter = callPackage ../development/python-modules/omnikinverter { }; 5437 + 5436 5438 omnilogic = callPackage ../development/python-modules/omnilogic { }; 5437 5439 5438 5440 ondilo = callPackage ../development/python-modules/ondilo { };