depot/third_party/nixpkgs/pkgs/development/python-modules/duckdb-engine/default.nix

55 lines
943 B
Nix
Raw Normal View History

{ 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 ];
};
}