about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-06-02 22:34:07 -0700
committerJon <jonringer@users.noreply.github.com>2020-06-03 11:29:15 -0700
commit22ef38bdadbeab468e6efa72517af912008e29f1 (patch)
tree34c2b8aafa809ff889ae54c7df7028c75315d52a /pkgs/development/python-modules
parent7a8434c710c2bf9310d9b21988bc4ee2ac683d04 (diff)
downloadnixlib-22ef38bdadbeab468e6efa72517af912008e29f1.tar
nixlib-22ef38bdadbeab468e6efa72517af912008e29f1.tar.gz
nixlib-22ef38bdadbeab468e6efa72517af912008e29f1.tar.bz2
nixlib-22ef38bdadbeab468e6efa72517af912008e29f1.tar.lz
nixlib-22ef38bdadbeab468e6efa72517af912008e29f1.tar.xz
nixlib-22ef38bdadbeab468e6efa72517af912008e29f1.tar.zst
nixlib-22ef38bdadbeab468e6efa72517af912008e29f1.zip
python3Packages.zope_lifecycleevent: fix tests
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/zope_lifecycleevent/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/zope_lifecycleevent/default.nix b/pkgs/development/python-modules/zope_lifecycleevent/default.nix
index 2beabc8a61c7..6494aa7a71af 100644
--- a/pkgs/development/python-modules/zope_lifecycleevent/default.nix
+++ b/pkgs/development/python-modules/zope_lifecycleevent/default.nix
@@ -1,8 +1,10 @@
 { stdenv
 , buildPythonPackage
 , fetchPypi
+, isPy3k
 , zope_event
 , zope_component
+, zope_interface
 }:
 
 buildPythonPackage rec {
@@ -16,6 +18,15 @@ buildPythonPackage rec {
 
   propagatedBuildInputs = [ zope_event zope_component ];
 
+  # namespace colides with local directory
+  doCheck = false;
+
+  # zope uses pep 420 namespaces for python3, doesn't work with nix + python2
+  pythonImportsCheck = stdenv.lib.optionals isPy3k [
+    "zope.lifecycleevent"
+    "zope.interface"
+  ];
+
   meta = with stdenv.lib; {
     homepage = "https://github.com/zopefoundation/zope.lifecycleevent";
     description = "Object life-cycle events";