1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 numpy,
6 pandas,
7 pyarrow,
8 pythonOlder,
9 pytz,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "neo4j";
15 version = "6.0.2";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "neo4j";
20 repo = "neo4j-python-driver";
21 tag = version;
22 hash = "sha256-0Idfa7hFrLSD26PpA/lJcVtYpAPcX+AF3wab092Sbzw=";
23 };
24
25 postPatch = ''
26 substituteInPlace pyproject.toml \
27 --replace-fail "setuptools ==" "setuptools >=" \
28 --replace-fail 'dynamic = ["version"]' 'version = "${version}"'
29 '';
30
31 build-system = [ setuptools ];
32
33 dependencies = [ pytz ];
34
35 optional-dependencies = {
36 numpy = [ numpy ];
37 pandas = [
38 numpy
39 pandas
40 ];
41 pyarrow = [ pyarrow ];
42 };
43
44 # Missing dependencies
45 doCheck = false;
46
47 pythonImportsCheck = [ "neo4j" ];
48
49 meta = with lib; {
50 description = "Neo4j Bolt Driver for Python";
51 homepage = "https://github.com/neo4j/neo4j-python-driver";
52 changelog = "https://github.com/neo4j/neo4j-python-driver/releases/tag/${src.tag}";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ fab ];
55 };
56}