nixpkgs/pkgs/development/python-modules/db-dtypes/default.nix
2022-06-09 18:03:31 +02:00

48 lines
879 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, packaging
, pandas
, pyarrow
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "db-dtypes";
version = "1.0.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "googleapis";
repo = "python-db-dtypes-pandas";
rev = "refs/tags/v${version}";
hash = "sha256-LLKhYLzGUQRx4ciWv1TilYvTOO0sj6rdkPlJLPZ8VXA=";
};
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 ];
};
}