Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 65 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, buildPythonPackage, fetchFromGitHub, numpy, pandas, pyarrow, pythonOlder, pytz, setuptools, tomlkit,}:
buildPythonPackage rec { pname = "neo4j"; version = "5.28.1"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "neo4j"; repo = "neo4j-python-driver"; tag = version; hash = "sha256-6Qa6llM8ke9dOkZ7q057ruM0h7pByxAQ+I6Mus2ExVA="; };
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}"' '';
build-system = [ setuptools ];
dependencies = [ pytz tomlkit ];
optional-dependencies = { numpy = [ numpy ]; pandas = [ numpy pandas ]; pyarrow = [ pyarrow ]; };
# Missing dependencies doCheck = false;
pythonImportsCheck = [ "neo4j" ];
meta = with lib; { description = "Neo4j Bolt Driver for Python"; homepage = "https://github.com/neo4j/neo4j-python-driver"; changelog = "https://github.com/neo4j/neo4j-python-driver/releases/tag/${version}"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; };}