My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/db-dtypes/default.nix

49 lines
1.0 KiB

{ lib
, buildPythonPackage
, fetchpatch
, fetchFromGitHub
, numpy
, packaging
, pandas
, pyarrow
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "db-dtypes";
version = "1.0.0";
src = fetchFromGitHub {
owner = "googleapis";
repo = "python-db-dtypes-pandas";
rev = "v${version}";
hash = "sha256-7u/E0ICiz7LQfuplm/mkGlWrgGEPqeMwM3CUhfH6868=";
};
patches = [
(fetchpatch {
url = "https://github.com/googleapis/python-db-dtypes-pandas/commit/fb30adfd427d3df9919df00b096210ba1eb1b91d.patch";
sha256 = "sha256-39kZtYGbn3U1WXiDTczki5EM6SjUlSRXz8UMcdTU20g=";
})
];
propagatedBuildInputs = [
numpy
packaging
pandas
pyarrow
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "db_dtypes" ];
meta = with lib; {
description = "Pandas Data Types for SQL systems (BigQuery, Spanner)";
homepage = "https://github.com/googleapis/python-db-dtypes-pandas";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}