python310Packages.prompthub-py: init at 4.0.0

This commit is contained in:
happysalada 2023-07-08 12:54:56 +08:00 committed by Yt
parent 9f915755ba
commit ef1158539c
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, pyyaml
, requests
}:
let
pname = "prompthub-py";
version = "4.0.0";
in
buildPythonPackage {
inherit version pname;
format = "pyproject";
# Pypi source package doesn't contain tests
src = fetchFromGitHub {
owner = "deepset-ai";
repo = pname;
rev = "v${version}";
hash = "sha256-FA4IfhHViSL1u4pgd7jh40rEcS0BldSFDwCPG5irk1g=";
};
disabled = pythonOlder "3.8";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pyyaml
requests
];
meta = with lib; {
description = "A simple client to fetch prompts from Prompt Hub using its REST API.";
homepage = "https://github.com/deepset-ai/prompthub-py";
changelog = "https://github.com/deepset-ai/prompthub-py/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
};
}

View File

@ -8244,6 +8244,8 @@ self: super: with self; {
prompt-toolkit = callPackage ../development/python-modules/prompt-toolkit { };
prompthub-py = callPackage ../development/python-modules/prompthub-py { };
property-manager = callPackage ../development/python-modules/property-manager { };
protego = callPackage ../development/python-modules/protego { };