diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2020-05-26 21:27:48 -0400 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-05-27 09:24:47 -0700 |
commit | d190eca58385bc3455cc747b5ebd742910907764 (patch) | |
tree | c57530518318a5aa128d6772ea7772289cf7d405 /pkgs/development/python-modules/duckdb | |
parent | bea173fb51f26e9bd1cb843c7a781478e76f4d4e (diff) |
pythonPackages.duckdb: init at 0.1.7
Diffstat (limited to 'pkgs/development/python-modules/duckdb')
-rw-r--r-- | pkgs/development/python-modules/duckdb/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/duckdb/default.nix b/pkgs/development/python-modules/duckdb/default.nix new file mode 100644 index 000000000000..c839dea3d1a6 --- /dev/null +++ b/pkgs/development/python-modules/duckdb/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, duckdb +, numpy +, pandas +, pybind11 +, setuptools_scm +, pytestrunner +, pytest +}: + +buildPythonPackage rec { + pname = "duckdb"; + inherit (duckdb) version src; + + postConfigure = '' + cd tools/pythonpkg + export SETUPTOOLS_SCM_PRETEND_VERSION=${version} + ''; + + nativeBuildInputs = [ + pybind11 + setuptools_scm + pytestrunner + ]; + + checkInputs = [ + pytest + ]; + + propagatedBuildInputs = [ + numpy + pandas + ]; + + checkPhase = '' + pytest + ''; + + meta = with lib; { + description = "DuckDB is an embeddable SQL OLAP Database Management System"; + homepage = "https://pypi.python.org/pypi/duckdb"; + license = licenses.mit; + maintainers = [ maintainers.costrouc ]; + }; +} |