nixpkgs/pkgs/development/python-modules/pykoplenti/default.nix
2021-05-06 00:11:23 +02:00

42 lines
804 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, click
, fetchFromGitHub
, prompt_toolkit
, pycryptodome
, pythonOlder
}:
buildPythonPackage rec {
pname = "pykoplenti";
version = "1.0.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "stegm";
repo = pname;
rev = "v${version}";
sha256 = "12nsyz8a49vhby1jp991vaky82fm93jrgcsjzwa2rixwg1zql4sw";
};
propagatedBuildInputs = [
aiohttp
click
prompt_toolkit
pycryptodome
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pykoplenti" ];
meta = with lib; {
description = "Python REST client API for Kostal Plenticore Inverters";
homepage = "https://github.com/stegm/pykoplenti/";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}