forked from mirrors/nixpkgs
Merge pull request #213806 from mweinelt/psycopg-3.1.8
python3Packages.psycopg: 3.1.3 -> 3.1.8
This commit is contained in:
commit
02b2b0bc60
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
# psycopg-c
|
# psycopg-c
|
||||||
, cython_3
|
, cython_3
|
||||||
|
, tomli
|
||||||
|
|
||||||
# docs
|
# docs
|
||||||
, furo
|
, furo
|
||||||
|
@ -32,13 +33,13 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "psycopg";
|
pname = "psycopg";
|
||||||
version = "3.1.3";
|
version = "3.1.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "psycopg";
|
owner = "psycopg";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/${version}";
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-cAfFxUDgfI3KTlBU9wV/vQkPun4cR3se8eSIHHcEr4g=";
|
hash = "sha256-VmuotHcLWd+k8/GLv0N2wSZR0sZjY+TmGBQjhpYE3YA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -70,9 +71,10 @@ let
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools
|
|
||||||
cython_3
|
cython_3
|
||||||
postgresql
|
postgresql
|
||||||
|
setuptools
|
||||||
|
tomli
|
||||||
];
|
];
|
||||||
|
|
||||||
# tested in psycopg
|
# tested in psycopg
|
||||||
|
@ -96,7 +98,7 @@ let
|
||||||
cd psycopg_pool
|
cd psycopg_pool
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
|
propagatedBuildInputs = [
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -181,10 +183,6 @@ buildPythonPackage rec {
|
||||||
# don't depend on mypy for tests
|
# don't depend on mypy for tests
|
||||||
"test_version"
|
"test_version"
|
||||||
"test_package_version"
|
"test_package_version"
|
||||||
] ++ lib.optionals (stdenv.isDarwin) [
|
|
||||||
# racy test
|
|
||||||
"test_sched"
|
|
||||||
"test_sched_error"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
|
@ -197,7 +195,8 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"-o cache_dir=$TMPDIR"
|
"-o" "cache_dir=$TMPDIR"
|
||||||
|
"-m" "'not timing'"
|
||||||
];
|
];
|
||||||
|
|
||||||
postCheck = ''
|
postCheck = ''
|
||||||
|
|
Loading…
Reference in a new issue