depot/third_party/nixpkgs/pkgs/development/python-modules/pykoplenti/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

41 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 ];
};
}