Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into HEAD
- Loading branch information
Showing
45 changed files
with
1,105 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ lib | ||
, stdenv | ||
, buildPythonPackage | ||
, fetchPypi | ||
, isPy3k | ||
, python | ||
, glibcLocales | ||
, pkgconfig | ||
, gdb | ||
, numpy | ||
, ncurses | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "Cython"; | ||
name = "${pname}-${version}"; | ||
version = "0.25.2"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "01h3lrf6d98j07iakifi81qjszh6faa37ibx7ylva1vsqbwx2hgi"; | ||
}; | ||
|
||
# With Python 2.x on i686-linux or 32-bit ARM this test fails because the | ||
# result is "3L" instead of "3", so let's fix it in-place. | ||
# | ||
# Upstream issue: https://github.com/cython/cython/issues/1548 | ||
postPatch = lib.optionalString ((stdenv.isi686 || stdenv.isArm) && !isPy3k) '' | ||
sed -i -e 's/\(>>> *\)\(verify_resolution_GH1533()\)/\1int(\2)/' \ | ||
tests/run/cpdef_enums.pyx | ||
''; | ||
|
||
buildInputs = [ glibcLocales pkgconfig gdb ]; | ||
# For testing | ||
nativeBuildInputs = [ numpy ncurses ]; | ||
|
||
LC_ALL = "en_US.UTF-8"; | ||
|
||
# cython's testsuite is not working very well with libc++ | ||
# We are however optimistic about things outside of testsuite still working | ||
checkPhase = '' | ||
export HOME="$NIX_BUILD_TOP" | ||
${python.interpreter} runtests.py \ | ||
${if stdenv.cc.isClang or false then ''--exclude="(cpdef_extern_func|libcpp_algo)"'' else ""} | ||
''; | ||
|
||
# Disable tests temporarily | ||
# https://github.com/cython/cython/issues/1676 | ||
doCheck = false; | ||
|
||
meta = { | ||
description = "An optimising static compiler for both the Python programming language and the extended Cython programming language"; | ||
homepage = http://cython.org; | ||
license = lib.licenses.asl20; | ||
maintainers = with lib.maintainers; [ fridh ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchurl | ||
, pytest | ||
, contextlib2 | ||
, cytoolz | ||
, dask | ||
, datashape | ||
, flask | ||
, flask-cors | ||
, h5py | ||
, multipledispatch | ||
, numba | ||
, numpy | ||
, odo | ||
, pandas | ||
, psutil | ||
, pymongo | ||
, pyyaml | ||
, requests | ||
, sqlalchemy | ||
, tables | ||
, toolz | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "blaze"; | ||
version = "0.11.0"; | ||
name = "${pname}-${version}"; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/blaze/blaze/archive/${version}.tar.gz"; | ||
sha256 = "07zrrxkmdqk84xvdmp29859zcfzlpx5pz6g62l28nqp6n6a7yq9a"; | ||
}; | ||
|
||
checkInputs = [ pytest ]; | ||
propagatedBuildInputs = [ | ||
contextlib2 | ||
cytoolz | ||
dask | ||
datashape | ||
flask | ||
flask-cors | ||
h5py | ||
multipledispatch | ||
numba | ||
numpy | ||
odo | ||
pandas | ||
psutil | ||
pymongo | ||
pyyaml | ||
requests | ||
sqlalchemy | ||
tables | ||
toolz | ||
]; | ||
|
||
# Failing test | ||
# ERROR collecting blaze/tests/test_interactive.py | ||
# E networkx.exception.NetworkXNoPath: node <class 'list'> not | ||
# reachable from <class 'dask.array.core.Array'> | ||
doCheck = false; | ||
|
||
checkPhase = '' | ||
py.test blaze/tests | ||
''; | ||
|
||
meta = { | ||
homepage = https://github.com/ContinuumIO/blaze; | ||
description = "Allows Python users a familiar interface to query data living in other data storage systems"; | ||
license = lib.licenses.bsdOriginal; | ||
maintainers = with lib.maintainers; [ fridh ]; | ||
}; | ||
} |
Oops, something went wrong.