nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pdm-pep517, 6 aiohttp, 7}: 8 9buildPythonPackage rec { 10 pname = "imeon-inverter-api"; 11 version = "0.4.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "Imeon-Inverters-for-Home-Assistant"; 16 repo = "inverter-api"; 17 tag = version; 18 hash = "sha256-+LIDrbSAGVkakofHZsyNJh8vPV87qA6VCW9eY1DhWEU="; 19 }; 20 21 build-system = [ pdm-pep517 ]; 22 23 pythonRemoveDeps = [ 24 # https://github.com/Imeon-Inverters-for-Home-Assistant/inverter-api/pull/1 25 "async-timeout" 26 ]; 27 28 dependencies = [ 29 aiohttp 30 ]; 31 32 pythonImportsCheck = [ "imeon_inverter_api" ]; 33 34 # upstream has no tests 35 doCheck = false; 36 37 meta = { 38 changelog = "https://github.com/Imeon-Inverters-for-Home-Assistant/inverter-api/releases/tag/${src.tag}"; 39 description = "Standalone API to collect data from the Imeon Energy Inverters that uses HTTP POST/GET"; 40 homepage = "https://github.com/Imeon-Inverters-for-Home-Assistant/inverter-api"; 41 license = lib.licenses.asl20; 42 maintainers = with lib.maintainers; [ dotlambda ]; 43 }; 44}