{ lib , buildPythonPackage , fetchFromGitHub , python , numba , numpy , pandas , pytestrunner , cramjam , fsspec , thrift , pytestCheckHook }: buildPythonPackage rec { pname = "fastparquet"; version = "0.6.3"; src = fetchFromGitHub { owner = "dask"; repo = pname; rev = version; hash = "sha256-wSJ6PqW7c8DJCsGuPhXaVGM2s/1dZhLjG4C0JWPcjhY="; }; nativeBuildInputs = [ pytestrunner ]; propagatedBuildInputs = [ cramjam fsspec numba numpy pandas thrift ]; checkInputs = [ pytestCheckHook ]; # Workaround https://github.com/NixOS/nixpkgs/issues/123561 preCheck = '' mv fastparquet/test . rm -rf 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 ]; }; }