2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, duckdb
|
|
|
|
, hypothesis
|
|
|
|
, ipython-sql
|
|
|
|
, poetry-core
|
|
|
|
, sqlalchemy
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "duckdb-engine";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "0.1.11";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "duckdb_engine";
|
|
|
|
owner = "Mause";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-tjyaV9DmiP2XrKxSCX2qKo7T7GNZtT3y5d1yQLdVuSE=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ duckdb sqlalchemy ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook hypothesis ipython-sql ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "duckdb_engine" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Very very very basic sqlalchemy driver for duckdb";
|
|
|
|
homepage = "https://github.com/Mause/duckdb_engine";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cpcloud ];
|
|
|
|
};
|
|
|
|
}
|