summary refs log tree commit diff
path: root/pkgs/development/python-modules/pq
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2020-09-10 21:56:40 +0100
committerJon <jonringer@users.noreply.github.com>2020-09-10 15:15:58 -0700
commit70c56dd486b3494319658dcaaa4b970944621956 (patch)
tree14a98439aa0fc9a221785e0adba5a88723d510a8 /pkgs/development/python-modules/pq
parent483fa86c3695ab411d914cdedfe8cbcd82e18865 (diff)
downloadnixpkgs-70c56dd486b3494319658dcaaa4b970944621956.tar
nixpkgs-70c56dd486b3494319658dcaaa4b970944621956.tar.gz
nixpkgs-70c56dd486b3494319658dcaaa4b970944621956.tar.bz2
nixpkgs-70c56dd486b3494319658dcaaa4b970944621956.tar.lz
nixpkgs-70c56dd486b3494319658dcaaa4b970944621956.tar.xz
nixpkgs-70c56dd486b3494319658dcaaa4b970944621956.tar.zst
nixpkgs-70c56dd486b3494319658dcaaa4b970944621956.zip
pythonPackages.pq: fix build
we can't run the tests anyway, so remove fragile attempts to patch them
Diffstat (limited to 'pkgs/development/python-modules/pq')
-rw-r--r--pkgs/development/python-modules/pq/default.nix16
1 files changed, 1 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/pq/default.nix b/pkgs/development/python-modules/pq/default.nix
index 75a722d831e..cfc5419bd23 100644
--- a/pkgs/development/python-modules/pq/default.nix
+++ b/pkgs/development/python-modules/pq/default.nix
@@ -1,7 +1,6 @@
 { lib
 , buildPythonPackage
 , fetchPypi
-, psycopg2
 , isPy27
 }:
 
@@ -15,22 +14,9 @@ buildPythonPackage rec {
     sha256 = "f54143844e73f4182532e68548dee447dd78dd00310a087e8cdee756d476a173";
   };
 
-  # psycopg2cffi is compatible with psycopg2 and author states that
-  # module is compatible with psycopg2
-  postConfigure = ''
-    substituteInPlace setup.py \
-      --replace "psycopg2cffi" "psycopg2"
-
-    substituteInPlace pq/tests.py \
-      --replace "psycopg2cffi" "psycopg2"
-  '';
-
-  checkInputs = [
-    psycopg2
-  ];
-
   # tests require running postgresql cluster
   doCheck = false;
+  pythonImportsCheck = [ "pq" ];
 
   meta = with lib; {
     description = "PQ is a transactional queue for PostgreSQL";