22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
40 lines
869 B
Nix
40 lines
869 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, duckdb
|
|
, hypothesis
|
|
, ipython-sql
|
|
, poetry-core
|
|
, sqlalchemy
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "duckdb-engine";
|
|
version = "0.1.8";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "duckdb_engine";
|
|
owner = "Mause";
|
|
rev = version;
|
|
hash = "sha256-dnm1nveCjrXFjDRykHp39AeVx7sk7Q/XwGn6hxdydT4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|