uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
54
pkgs/development/python-modules/cysignals/default.nix
Normal file
54
pkgs/development/python-modules/cysignals/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib
|
||||
, autoreconfHook
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, cython
|
||||
, pariSupport ? true, pari # for interfacing with the PARI/GP signal handler
|
||||
}:
|
||||
|
||||
assert pariSupport -> pari != null;
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cysignals";
|
||||
version = "1.11.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5858b1760fbe21848121b826b2463a67ac5a45caf3d73105497a68618c5a6fa6";
|
||||
};
|
||||
|
||||
# explicit check:
|
||||
# build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
|
||||
hardeningDisable = [
|
||||
"fortify"
|
||||
];
|
||||
|
||||
# known failure: https://github.com/sagemath/cysignals/blob/582dbf6a7b0f9ade0abe7a7b8720b7fb32435c3c/testgdb.py#L5
|
||||
doCheck = false;
|
||||
checkTarget = "check-install";
|
||||
|
||||
preCheck = ''
|
||||
# Make sure cysignals-CSI is in PATH
|
||||
export PATH="$out/bin:$PATH"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cython
|
||||
] ++ lib.optionals pariSupport [
|
||||
# When cysignals is built with pari, including cysignals into the
|
||||
# buildInputs of another python package will cause cython to link against
|
||||
# pari.
|
||||
pari
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Interrupt and signal handling for Cython";
|
||||
homepage = "https://github.com/sagemath/cysignals/";
|
||||
maintainers = teams.sage.members;
|
||||
license = licenses.lgpl3Plus;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue