Unverified Commit 980b7dc3 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.neo4j: 5.28.2 -> 6.0.2 (#448369)

parents ce7bae84 e91d0b09
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -47,6 +47,11 @@ python3.pkgs.buildPythonApplication rec {

  enabledTestPaths = [ "tests/tests*" ];

  disabledTests = [
    # Issue with later neo4j versions
    "test_create_db"
  ];

  meta = with lib; {
    description = "Tool for pentesting Microsoft Active Directory";
    homepage = "https://github.com/helviojunior/knowsmore";
+7 −5
Original line number Diff line number Diff line
@@ -2,10 +2,9 @@
  lib,
  buildPythonPackage,
  fetchPypi,
  neo4j,
  llama-index-core,
  hatchling,
  pythonOlder,
  llama-index-core,
  neo4j,
}:

buildPythonPackage rec {
@@ -13,14 +12,14 @@ buildPythonPackage rec {
  version = "0.5.1";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    pname = "llama_index_graph_stores_neo4j";
    inherit version;
    hash = "sha256-P3EzR6piD49dFQY26LuV4/gZpOsFe5Hfp87BFiwo1Xg=";
  };

  pythonRelaxDeps = [ "neo4j" ];

  build-system = [ hatchling ];

  dependencies = [
@@ -28,6 +27,9 @@ buildPythonPackage rec {
    llama-index-core
  ];

  # Tests are not shipped with PyPI package
  doCheck = false;

  pythonImportsCheck = [ "llama_index.graph_stores.neo4j" ];

  meta = with lib; {
+4 −13
Original line number Diff line number Diff line
@@ -8,38 +8,29 @@
  pythonOlder,
  pytz,
  setuptools,
  tomlkit,
}:

buildPythonPackage rec {
  pname = "neo4j";
  version = "5.28.2";
  version = "6.0.2";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "neo4j";
    repo = "neo4j-python-driver";
    tag = version;
    hash = "sha256-dQvQO+Re+ki9w+itzE6/WdiiLdMlU4yePt01vAPe4+M=";
    hash = "sha256-0Idfa7hFrLSD26PpA/lJcVtYpAPcX+AF3wab092Sbzw=";
  };

  postPatch = ''
    # The dynamic versioning adds a postfix (.dev0) to the version
    substituteInPlace pyproject.toml \
      --replace-fail "setuptools ==" "setuptools >=" \
      --replace-fail "tomlkit ==" "tomlkit >=" \
      --replace-fail 'dynamic = ["version", "readme"]' 'dynamic = ["readme"]' \
      --replace-fail '#readme = "README.rst"' 'version = "${version}"'
      --replace-fail 'dynamic = ["version"]' 'version = "${version}"'
  '';

  build-system = [ setuptools ];

  dependencies = [
    pytz
    tomlkit
  ];
  dependencies = [ pytz ];

  optional-dependencies = {
    numpy = [ numpy ];