depot/third_party/nixpkgs/pkgs/development/python-modules/llama-index-readers-json/default.nix

35 lines
533 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, poetry-core
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "llama-index-readers-json";
version = "0.1.2";
inherit (llama-index-core) src meta;
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/readers/${pname}";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
llama-index-core
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"llama_index.readers.json"
];
}