depot/third_party/nixpkgs/pkgs/development/python-modules/pykostalpiko/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

42 lines
811 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, click
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pykostalpiko";
version = "1.1.1-1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Florian7843";
repo = pname;
rev = "v${version}";
hash = "sha256-0szkxR19iSWWpPAEo3wriMmI5TFI6YeYRTj86b4rKlU=";
};
propagatedBuildInputs = [
aiohttp
click
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"pykostalpiko"
];
meta = with lib; {
description = "Library and CLI-tool to fetch the data from a Kostal Piko inverter";
homepage = "https://github.com/Florian7843/pykostalpiko";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}