1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 poetry-core, 7 pyyaml, 8 requests, 9}: 10let 11 pname = "prompthub-py"; 12 version = "4.0.0"; 13in 14buildPythonPackage { 15 inherit version pname; 16 format = "pyproject"; 17 18 # Pypi source package doesn't contain tests 19 src = fetchFromGitHub { 20 owner = "deepset-ai"; 21 repo = "prompthub-py"; 22 rev = "v${version}"; 23 hash = "sha256-FA4IfhHViSL1u4pgd7jh40rEcS0BldSFDwCPG5irk1g="; 24 }; 25 26 disabled = pythonOlder "3.8"; 27 28 nativeBuildInputs = [ poetry-core ]; 29 30 propagatedBuildInputs = [ 31 pyyaml 32 requests 33 ]; 34 35 meta = with lib; { 36 description = "Simple client to fetch prompts from Prompt Hub using its REST API"; 37 homepage = "https://github.com/deepset-ai/prompthub-py"; 38 changelog = "https://github.com/deepset-ai/prompthub-py/releases/tag/v${version}"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ happysalada ]; 41 }; 42}