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