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
59
pkgs/development/python-modules/fastavro/default.nix
Normal file
59
pkgs/development/python-modules/fastavro/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ buildPythonPackage
|
||||
, cython
|
||||
, fetchFromGitHub
|
||||
, isPy38
|
||||
, lib
|
||||
, lz4
|
||||
, numpy
|
||||
, pandas
|
||||
, pytestCheckHook
|
||||
, python-dateutil
|
||||
, python-snappy
|
||||
, pythonOlder
|
||||
, zstandard
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastavro";
|
||||
version = "1.4.12";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "sha256-t3SM7pTsl3JLWeJSESzXGONyjufwCHMaqK95JI3isYY=";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
export FASTAVRO_USE_CYTHON=1
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
|
||||
checkInputs = [
|
||||
lz4
|
||||
numpy
|
||||
pandas
|
||||
pytestCheckHook
|
||||
python-dateutil
|
||||
python-snappy
|
||||
zstandard
|
||||
];
|
||||
|
||||
# Fails with "AttributeError: module 'fastavro._read_py' has no attribute
|
||||
# 'CYTHON_MODULE'." Doesn't appear to be serious. See https://github.com/fastavro/fastavro/issues/112#issuecomment-387638676.
|
||||
disabledTests = [ "test_cython_python" ];
|
||||
|
||||
# CLI tests are broken on Python 3.8. See https://github.com/fastavro/fastavro/issues/558.
|
||||
disabledTestPaths = lib.optionals isPy38 [ "tests/test_main_cli.py" ];
|
||||
|
||||
pythonImportsCheck = [ "fastavro" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast read/write of AVRO files";
|
||||
homepage = "https://github.com/fastavro/fastavro";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ samuela ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue