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
87
pkgs/development/python-modules/tiledb/default.nix
Normal file
87
pkgs/development/python-modules/tiledb/default.nix
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
{ lib
|
||||
, python
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cython
|
||||
, pybind11
|
||||
, tiledb
|
||||
, numpy
|
||||
, wheel
|
||||
, isPy3k
|
||||
, setuptools-scm
|
||||
, psutil
|
||||
, pandas
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tiledb";
|
||||
version = "0.13.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "TileDB-Inc";
|
||||
repo = "TileDB-Py";
|
||||
rev = version;
|
||||
sha256 = "sha256-ku+9kMXXrlPy4teV5KpTXAwExhIoPpAsGAHIBvsl9KI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
pybind11
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
tiledb
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
wheel # No idea why but it is listed
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
psutil
|
||||
# optional
|
||||
pandas
|
||||
];
|
||||
|
||||
TILEDB_PATH = tiledb;
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
disabled = !isPy3k; # Not bothering with python2 anymore
|
||||
|
||||
postPatch = ''
|
||||
# Hardcode path to shared object
|
||||
substituteInPlace tiledb/__init__.py --replace \
|
||||
'os.path.join(lib_dir, lib_name)' 'os.path.join("${tiledb}/lib", lib_name)'
|
||||
|
||||
# Disable failing test
|
||||
substituteInPlace tiledb/tests/test_examples.py --replace \
|
||||
"test_docs" "dont_test_docs"
|
||||
# these tests don't always fail
|
||||
substituteInPlace tiledb/tests/test_libtiledb.py --replace \
|
||||
"test_varlen_write_int_subarray" "dont_test_varlen_write_int_subarray" \
|
||||
--replace "test_memory_cleanup" "dont_test_memory_cleanup" \
|
||||
--replace "test_ctx_thread_cleanup" "dont_test_ctx_thread_cleanup"
|
||||
substituteInPlace tiledb/tests/test_metadata.py --replace \
|
||||
"test_metadata_consecutive" "dont_test_metadata_consecutive"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
pushd "$TMPDIR"
|
||||
${python.interpreter} -m unittest tiledb.tests.all.suite_test
|
||||
popd
|
||||
'';
|
||||
pythonImportsCheck = [ "tiledb" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python interface to the TileDB storage manager";
|
||||
homepage = "https://github.com/TileDB-Inc/TileDB-Py";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fridh ];
|
||||
# tiledb/core.cc:556:30: error: ‘struct std::array<long unsigned int, 2>’ has no member named ‘second’
|
||||
broken = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue