python3Packages.psycopg: relax deps and clean up

Changed files
+6 -9
pkgs
development
python-modules
psycopg
+6 -9
pkgs/development/python-modules/psycopg/default.nix
···
buildPythonPackage,
fetchFromGitHub,
fetchurl,
-
pythonOlder,
replaceVars,
# build
···
# move into source root after patching
postPatch = ''
cd psycopg_c
+
+
substituteInPlace pyproject.toml \
+
--replace-fail "Cython >= 3.0.0, < 3.1.0" "Cython"
'';
nativeBuildInputs = [
···
buildPythonPackage rec {
inherit pname version src;
-
format = "pyproject";
-
-
disabled = pythonOlder "3.7";
+
pyproject = true;
outputs = [
"out"
···
'';
nativeBuildInputs = [
-
furo
setuptools
-
shapely
]
# building the docs fails with the following error when cross compiling
# AttributeError: module 'psycopg_c.pq' has no attribute '__impl__'
++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [
+
furo
sphinx-autodoc-typehints
sphinxHook
+
shapely
];
propagatedBuildInputs = [
···
# Mypy typing test
"tests/test_typing.py"
"tests/crdb/test_typing.py"
-
# https://github.com/psycopg/psycopg/pull/915
-
"tests/test_notify.py"
-
"tests/test_notify_async.py"
];
pytestFlags = [