depot/third_party/nixpkgs/pkgs/development/python-modules/pykostalpiko/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

42 lines
809 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, click
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pykostalpiko";
version = "1.1.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Florian7843";
repo = pname;
rev = "v${version}";
hash = "sha256-kmzFsOgmMb8bOkulg7G6vXEPdb0xizh7u5LjnHfEWWQ=";
};
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 ];
};
}