python311Packages.llama-index-readers-json: 0.10.20 -> 0.1.5

No longer use the mono repo for the source as the release
cylcle don't match
This commit is contained in:
Fabian Affolter 2024-03-25 16:56:27 +01:00
parent 296632ca45
commit 0595923f00

View File

@ -1,34 +1,43 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, llama-index-core
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "llama-index-readers-json";
version = "0.1.2";
inherit (llama-index-core) src meta;
version = "0.1.5";
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/readers/${pname}";
disabled = pythonOlder "3.8";
nativeBuildInputs = [
src = fetchPypi {
pname = "llama_index_readers_json";
inherit version;
hash = "sha256-H+CG+2FtoOF/DUG6EuAWzY2xe1upLX0pakVutJTZFE0=";
};
build-system = [
poetry-core
];
propagatedBuildInputs = [
dependencies = [
llama-index-core
];
nativeCheckInputs = [
pytestCheckHook
];
# Tests are only available in the mono repo
doCheck = false;
pythonImportsCheck = [
"llama_index.readers.json"
];
meta = with lib; {
description = "LlamaIndex Readers Integration for Json";
homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/readers/llama-index-readers-json";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}