Merge pull request #170756 from cpcloud/bump-ibis-framework
python3Packages.ibis-framework: 2.1.1 -> 3.0.2main
commit
b455605c2d
@ -0,0 +1,40 @@ |
||||
{ 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 ]; |
||||
}; |
||||
} |
@ -0,0 +1,58 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pythonOlder |
||||
, ipython |
||||
, ipython_genutils |
||||
, pandas |
||||
, prettytable |
||||
, pytest |
||||
, sqlalchemy |
||||
, sqlparse |
||||
}: |
||||
buildPythonPackage rec { |
||||
pname = "ipython-sql"; |
||||
version = "0.4.0"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "catherinedevlin"; |
||||
repo = "ipython-sql"; |
||||
rev = "117764caf099d80100ed4b09fc004b55eed6f121"; |
||||
hash = "sha256-ScQihsvRSnC7VIgy8Tzi1z4x6KIZo0SAeLPvHAVdrfA="; |
||||
}; |
||||
|
||||
postPatch = '' |
||||
substituteInPlace setup.py --replace 'prettytable<1' prettytable |
||||
''; |
||||
|
||||
propagatedBuildInputs = [ |
||||
ipython |
||||
ipython_genutils |
||||
prettytable |
||||
sqlalchemy |
||||
sqlparse |
||||
]; |
||||
|
||||
checkInputs = [ ipython pandas pytest ]; |
||||
|
||||
checkPhase = '' |
||||
runHook preCheck |
||||
|
||||
# running with ipython is required because the tests use objects available |
||||
# only inside of ipython, for example the global `get_ipython()` function |
||||
ipython -c 'import pytest; pytest.main()' |
||||
|
||||
runHook postCheck |
||||
''; |
||||
|
||||
pythonImportsCheck = [ "sql" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Introduces a %sql (or %%sql) magic."; |
||||
homepage = "https://github.com/catherinedevlin/ipython-sql"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ cpcloud ]; |
||||
}; |
||||
} |
@ -0,0 +1,52 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, dunamai |
||||
, jinja2 |
||||
, markupsafe |
||||
, poetry-core |
||||
, pytest |
||||
, tomlkit |
||||
}: |
||||
buildPythonPackage rec { |
||||
pname = "poetry-dynamic-versioning"; |
||||
version = "0.14.1"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "mtkennerly"; |
||||
repo = pname; |
||||
rev = "v${version}"; |
||||
hash = "sha256-J/93BFyp+XBy9TRAzAM64ZcMurHxcXDTukOGJE5yvBk="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ poetry-core ]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
dunamai |
||||
tomlkit |
||||
jinja2 |
||||
markupsafe |
||||
]; |
||||
|
||||
checkInputs = [ pytestCheckHook ]; |
||||
|
||||
disabledTests = [ |
||||
# these require .git, but leaveDotGit = true doesn't help |
||||
"test__get_version__defaults" |
||||
"test__get_version__format_jinja" |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "poetry_dynamic_versioning" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "Plugin for Poetry to enable dynamic versioning based on VCS tags"; |
||||
homepage = "https://github.com/mtkennerly/poetry-dynamic-versioning"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ cpcloud ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue