2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
future,
|
|
|
|
httplib2,
|
|
|
|
httpx,
|
|
|
|
pdm-backend,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pytz,
|
|
|
|
six,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nebula3-python";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "3.8.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vesoft-inc";
|
|
|
|
repo = "nebula-python";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-tpMm13iixtg3ZF4g7YgRLyd/VqJba51QPGPmFRpy0wA=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ pdm-backend ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
future
|
|
|
|
httplib2
|
2024-05-15 15:35:15 +00:00
|
|
|
httpx
|
2024-04-21 15:54:59 +00:00
|
|
|
pytz
|
|
|
|
six
|
2024-05-15 15:35:15 +00:00
|
|
|
] ++ httpx.optional-dependencies.http2;
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "nebula3" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests require a running thrift instance
|
|
|
|
"tests/test_connection.py"
|
|
|
|
"tests/test_data_from_server.py"
|
|
|
|
"tests/test_graph_storage_client.py"
|
|
|
|
"tests/test_meta_cache.py"
|
|
|
|
"tests/test_parameter.py"
|
|
|
|
"tests/test_pool.py"
|
|
|
|
"tests/test_session.py"
|
|
|
|
"tests/test_session_pool.py"
|
|
|
|
"tests/test_ssl_connection.py"
|
|
|
|
"tests/test_ssl_pool.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Client API of Nebula Graph in Python";
|
|
|
|
homepage = "https://github.com/vesoft-inc/nebula-python";
|
|
|
|
changelog = "https://github.com/vesoft-inc/nebula-python/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|