about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Weinelt2023-03-18 11:59:34 +0000
committerGitHub2023-03-18 11:59:34 +0000
commita5f8184fb816a4fd5ae87136838c9981e0d22c67 (patch)
tree6f40477444e9e23cd3bfae955fe8243dde0c4aec
parent088089e8e089cef910c665d313aa6beffb6d04f9 (diff)
parentfb16963fded3c3be137823e70252aab1587b273e (diff)
Merge pull request #221792 from mweinelt/pypy-packages
pypy3Packages.greenlet: Set null for pypi; pypy3Packages.six: Disable failing test
-rw-r--r--pkgs/development/python-modules/greenlet/default.nix1
-rw-r--r--pkgs/development/python-modules/six/default.nix6
-rw-r--r--pkgs/top-level/python-packages.nix3
3 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/greenlet/default.nix b/pkgs/development/python-modules/greenlet/default.nix
index e8a4e862b78e..3c5049a8a619 100644
--- a/pkgs/development/python-modules/greenlet/default.nix
+++ b/pkgs/development/python-modules/greenlet/default.nix
@@ -12,7 +12,6 @@ buildPythonPackage rec {
   pname = "greenlet";
   version = "2.0.2";
   format = "setuptools";
-  disabled = isPyPy; # builtin for pypy
 
   src = fetchPypi {
     inherit pname version;
diff --git a/pkgs/development/python-modules/six/default.nix b/pkgs/development/python-modules/six/default.nix
index 775dd4b3992e..afaedae9529e 100644
--- a/pkgs/development/python-modules/six/default.nix
+++ b/pkgs/development/python-modules/six/default.nix
@@ -1,6 +1,7 @@
 { lib
 , buildPythonPackage
 , fetchPypi
+, isPyPy
 , pytestCheckHook
 }:
 
@@ -19,6 +20,11 @@ buildPythonPackage rec {
     pytestCheckHook
   ];
 
+  pytestFlagsArray = if isPyPy then [
+    # uses ctypes to find native library
+    "--deselect=test_six.py::test_move_items"
+  ] else null;
+
   pythonImportsCheck = [ "six" ];
 
   meta = {
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 999f0e190472..d900cef9ec56 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -4180,7 +4180,8 @@ self: super: with self; {
 
   greeneye-monitor = callPackage ../development/python-modules/greeneye-monitor { };
 
-  greenlet = callPackage ../development/python-modules/greenlet { };
+  # built-in for pypi
+  greenlet = if isPyPy then null else callPackage ../development/python-modules/greenlet { };
 
   grequests = callPackage ../development/python-modules/grequests { };