14 buildPythonPackage rec {
17 format = "setuptools";
19 # See https://github.com/NixOS/nixpkgs/pull/248195#issuecomment-1687398702.
20 disabled = pythonAtLeast "3.11";
22 # See https://github.com/srush/MiniChain/issues/23 and https://github.com/NixOS/nixpkgs/issues/248185 as to why we
23 # don't fetchFromGitHub.
25 inherit pname version;
26 hash = "sha256-+mju1Mz/aojROpiOVzv6WoRNTrhgCub4yyYLEWcHWh0=";
29 # See https://github.com/srush/MiniChain/issues/24.
31 substituteInPlace ./minichain/__init__.py --replace "from .gradio import GradioConf, show" ""
36 # Only used in the examples:
45 # Not yet packaged in nixpkgs:
49 # Some of these could be made optional. Certain packages are used by certain backends.
50 propagatedBuildInputs = [
58 # As of 0.3.3, the PyPI distribution does not include any tests.
61 pythonImportsCheck = [ "minichain" ];
63 nativeCheckInputs = [ pytestCheckHook ];
66 description = "Tiny library for coding with large language models";
67 homepage = "https://srush-minichain.hf.space";
68 changelog = "https://github.com/srush/MiniChain/releases/tag/v${version}";
69 license = licenses.mit;
70 maintainers = with maintainers; [ samuela ];