Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 64 lines 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, duckdb 7, hypothesis 8, ipython-sql 9, poetry-core 10, sqlalchemy 11, typing-extensions 12}: 13 14buildPythonPackage rec { 15 pname = "duckdb-engine"; 16 version = "0.7.0"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 repo = "duckdb_engine"; 23 owner = "Mause"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-qLQjFkud9DivLQ9PignLrXlUVOAxsd28s7+2GdC5jKE="; 26 }; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 propagatedBuildInputs = [ 33 duckdb 34 sqlalchemy 35 ]; 36 37 preCheck = '' 38 export HOME="$(mktemp -d)" 39 ''; 40 41 # this test tries to download the httpfs extension 42 disabledTests = [ 43 "test_preload_extension" 44 ]; 45 46 nativeCheckInputs = [ 47 pytestCheckHook 48 hypothesis 49 ipython-sql 50 typing-extensions 51 ]; 52 53 pythonImportsCheck = [ 54 "duckdb_engine" 55 ]; 56 57 meta = with lib; { 58 description = "SQLAlchemy driver for duckdb"; 59 homepage = "https://github.com/Mause/duckdb_engine"; 60 changelog = "https://github.com/Mause/duckdb_engine/blob/v${version}/CHANGELOG.md"; 61 license = licenses.mit; 62 maintainers = with maintainers; [ cpcloud ]; 63 }; 64}