pythonPackages.funcsigs: fix tests on pypy3
This package has a spurious test failure on PyPy3, which was reported
upstream a while ago:
https://github.com/testing-cabal/funcsigs/issues/10
This is fixed thanks to the included patch, which was authored and is
also used by the Gentoo Python team.
With this, packages like 'pytest' and 'click' now work under PyPy3.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, unittest2 }:
|
||||
, isPyPy, isPy3k, unittest2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "funcsigs";
|
||||
@@ -12,6 +13,9 @@ buildPythonPackage rec {
|
||||
|
||||
buildInputs = [ unittest2 ];
|
||||
|
||||
# https://github.com/testing-cabal/funcsigs/issues/10
|
||||
patches = stdenv.lib.optional (isPyPy && isPy3k) [ ./fix-pypy3-tests.patch ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+";
|
||||
homepage = https://github.com/aliles/funcsigs;
|
||||
|
||||
Reference in New Issue
Block a user