1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 llama-index-core,
6 hatchling,
7 pyowm,
8 pythonOlder,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "llama-index-readers-weather";
14 version = "0.4.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 pname = "llama_index_readers_weather";
21 inherit version;
22 hash = "sha256-fprFX75y50RzJA4SlMfgAeXOO88QbY9UT17Y8oIwdUk=";
23 };
24
25 build-system = [ hatchling ];
26
27 dependencies = [
28 llama-index-core
29 pyowm
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 # Tests are only available in the mono repo
35 doCheck = false;
36
37 pythonImportsCheck = [ "llama_index.readers.weather" ];
38
39 meta = with lib; {
40 description = "LlamaIndex Readers Integration for Weather";
41 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/readers/llama-index-readers-weather";
42 license = licenses.mit;
43 maintainers = with maintainers; [ fab ];
44 };
45}