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/fastparquet/default.nix
Normal file
54
pkgs/development/python-modules/fastparquet/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, python
|
||||
, numba
|
||||
, numpy
|
||||
, pandas
|
||||
, cramjam
|
||||
, fsspec
|
||||
, thrift
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastparquet";
|
||||
version = "0.8.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dask";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "05qb4nz87p9vnrdsyl25hdp5sj35lki64gjza5dahc89fwfdnsmd";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pytest-runner'," "" \
|
||||
--replace "oldest-supported-numpy" "numpy"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ cramjam fsspec numba numpy pandas thrift ];
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
# Workaround https://github.com/NixOS/nixpkgs/issues/123561
|
||||
preCheck = ''
|
||||
mv fastparquet/test .
|
||||
rm -r fastparquet
|
||||
fastparquet_test="$out"/${python.sitePackages}/fastparquet/test
|
||||
ln -s `pwd`/test "$fastparquet_test"
|
||||
'';
|
||||
|
||||
postCheck = ''
|
||||
rm "$fastparquet_test"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "fastparquet" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A python implementation of the parquet format";
|
||||
homepage = "https://github.com/dask/fastparquet";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue