Merge branch 'staging' (older one)
Hydra seems OK-ish, except that some aarch64 jobs need restarting after qt4 timing out for the first time: https://hydra.nixos.org/eval/1412641?compare=1412561
This commit is contained in:
@@ -17,6 +17,20 @@ if isPyPy then null else buildPythonPackage rec {
|
||||
propagatedBuildInputs = [ libffi pycparser ];
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
# On Darwin, the cffi tests want to hit libm a lot, and look for it in a global
|
||||
# impure search path. It's obnoxious how much repetition there is, and how difficult
|
||||
# it is to get it to search somewhere else (since we do actually have a libm symlink in libSystem)
|
||||
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace testing/cffi0/test_parsing.py \
|
||||
--replace 'lib_m = "m"' 'lib_m = "System"' \
|
||||
--replace '"libm" in name' '"libSystem" in name'
|
||||
substituteInPlace testing/cffi0/test_unicode_literals.py --replace 'lib_m = "m"' 'lib_m = "System"'
|
||||
substituteInPlace testing/cffi0/test_zdistutils.py --replace 'self.lib_m = "m"' 'self.lib_m = "System"'
|
||||
substituteInPlace testing/cffi1/test_recompiler.py --replace 'lib_m = "m"' 'lib_m = "System"'
|
||||
substituteInPlace testing/cffi0/test_function.py --replace "lib_m = 'm'" "lib_m = 'System'"
|
||||
substituteInPlace testing/cffi0/test_verify.py --replace "lib_m = ['m']" "lib_m = ['System']"
|
||||
'';
|
||||
|
||||
# The tests use -Werror but with python3.6 clang detects some unreachable code.
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.cc.isClang [ "-Wno-unused-command-line-argument" "-Wno-unreachable-code" ];
|
||||
|
||||
|
||||
@@ -1,25 +1,27 @@
|
||||
{ lib, buildPythonPackage, isPyPy, isPy3k, fetchurl, gdb, binutils }:
|
||||
{ lib, fetchFromGitHub, buildPythonPackage, isPyPy, isPy3k, libbfd, libopcodes }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "pybfd-0.1.1";
|
||||
|
||||
disabled = isPyPy || isPy3k;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/p/pybfd/${name}.tar.gz";
|
||||
sha256 = "d99b32ad077e704ddddc0b488c83cae851c14919e5cbc51715d00464a1932df4";
|
||||
src = fetchFromGitHub {
|
||||
owner = "orivej";
|
||||
repo = "pybfd";
|
||||
rev = "a2c3a7b94a3c9f7a353b863f69a79174c6a41ebe";
|
||||
sha256 = "0wrz234dz25hs0ajzcz5w8lzc1yzf64wqa8fj01hhr4yy23vjkcr";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace '"/usr/include"' '"${gdb}/include"' \
|
||||
--replace '"/usr/lib"' '"${binutils.lib}/lib"'
|
||||
'';
|
||||
LIBBFD_INCLUDE_DIR = "${libbfd.dev}/include";
|
||||
LIBBFD_LIBRARY = "${libbfd}/lib/libbfd.so";
|
||||
LIBOPCODES_INCLUDE_DIR = "${libopcodes.dev}/include";
|
||||
LIBOPCODES_LIBRARY = "${libopcodes}/lib/libopcodes.so";
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/Groundworkstech/pybfd;
|
||||
description = "A Python interface to the GNU Binary File Descriptor (BFD) library";
|
||||
license = lib.licenses.gpl2;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ orivej ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
, setuptools_scm
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
version = "3.2.3";
|
||||
version = "3.2.5";
|
||||
pname = "pytest";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
@@ -13,7 +13,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "27fa6617efc2869d3e969a3e75ec060375bfb28831ade8b5cdd68da3a741dc3c";
|
||||
sha256 = "6d5bd4f7113b444c55a3bbb5c738a3dd80d43563d063fc42dcb0aaefbdd78b81";
|
||||
};
|
||||
|
||||
buildInputs = [ hypothesis setuptools_scm ];
|
||||
|
||||
Reference in New Issue
Block a user