nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, duckdb
7, hypothesis
8, ipython-sql
9, poetry-core
10, sqlalchemy
11}:
12buildPythonPackage rec {
13 pname = "duckdb-engine";
14 version = "0.1.8";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 repo = "duckdb_engine";
21 owner = "Mause";
22 rev = version;
23 hash = "sha256-dnm1nveCjrXFjDRykHp39AeVx7sk7Q/XwGn6hxdydT4=";
24 };
25
26 nativeBuildInputs = [ poetry-core ];
27
28 propagatedBuildInputs = [ duckdb sqlalchemy ];
29
30 checkInputs = [ pytestCheckHook hypothesis ipython-sql ];
31
32 pythonImportsCheck = [ "duckdb_engine" ];
33
34 meta = with lib; {
35 description = "Very very very basic sqlalchemy driver for duckdb";
36 homepage = "https://github.com/Mause/duckdb_engine";
37 license = licenses.mit;
38 maintainers = with maintainers; [ cpcloud ];
39 };
40}