depot/third_party/nixpkgs/pkgs/development/python-modules/duckdb-engine/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

54 lines
943 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, duckdb
, hypothesis
, ipython-sql
, poetry-core
, sqlalchemy
, typing-extensions
}:
buildPythonPackage rec {
pname = "duckdb-engine";
version = "0.5.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
repo = "duckdb_engine";
owner = "Mause";
rev = "refs/tags/v${version}";
hash = "sha256-6bR2pt7gUHZu4I7VmJgVsFT9u3/e4c9RAKHHlbX/Tyk=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
duckdb
sqlalchemy
];
checkInputs = [
pytestCheckHook
hypothesis
ipython-sql
typing-extensions
];
pythonImportsCheck = [
"duckdb_engine"
];
meta = with lib; {
description = "SQLAlchemy driver for duckdb";
homepage = "https://github.com/Mause/duckdb_engine";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}