mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-15 08:58:58 +03:00
python310Packages.prompthub-py: init at 4.0.0
This commit is contained in:
parent
9f915755ba
commit
ef1158539c
43
pkgs/development/python-modules/prompthub-py/default.nix
Normal file
43
pkgs/development/python-modules/prompthub-py/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user