flake/packages/dynamicprompts/default.nix
Max 079f83ba45 Major Upgrade/Refactor
- KoboldAI is no longer upstream maintained, so is now deprecated in
  nixified.ai

- InvokeAI: v2.3.1.post2 -> v3.3.0post3
- textgen: init at v1.7
- treewide: update flake inputs including nixpkgs
- treewide: add a bunch of new dependencies and upgrade old ones
2023-10-19 22:13:37 +01:00

56 lines
954 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, hatchling
, jinja2
, pyparsing
, pytest
, pytest-cov
, pytest-lazy-fixture
, requests
, transformers
}:
buildPythonPackage rec {
pname = "dynamicprompts";
version = "0.27.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-lS/UgfZoR4wWozdtSAFBenIRljuPxnL8fMQT3dIA7WE=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
jinja2
pyparsing
];
passthru.optional-dependencies = {
dev = [
pytest
pytest-cov
pytest-lazy-fixture
];
feelinglucky = [
requests
];
magicprompt = [
transformers
];
};
pythonImportsCheck = [ "dynamicprompts" ];
meta = with lib; {
description = "Dynamic prompts templating library for Stable Diffusion";
homepage = "https://pypi.org/project/dynamicprompts/";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}