diff options
| author | natsukium <tomoya.otabi@gmail.com> | 2024-01-20 09:23:48 +0900 |
|---|---|---|
| committer | natsukium <tomoya.otabi@gmail.com> | 2024-01-31 22:32:10 +0900 |
| commit | e5ced5d0b2a5b184764a813780206cd27749835f (patch) | |
| tree | fbdfa350b2b5b41ed6b225544169eda76a395ddd /pkgs/development/python-modules/ipython-sql | |
| parent | c527a92027c303537118be294681d1dd7c2ac88d (diff) | |
python311Packages.ipython-sql: 0.4.0 -> 0.5.0
Diff: https://github.com/catherinedevlin/ipython-sql/compare/117764caf099d80100ed4b09fc004b55eed6f121...4c4603c2212514464ec042c8db693b2d3053e673
Diffstat (limited to 'pkgs/development/python-modules/ipython-sql')
| -rw-r--r-- | pkgs/development/python-modules/ipython-sql/default.nix | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/pkgs/development/python-modules/ipython-sql/default.nix b/pkgs/development/python-modules/ipython-sql/default.nix index 0aa7fa388c4f..a87c359c967a 100644 --- a/pkgs/development/python-modules/ipython-sql/default.nix +++ b/pkgs/development/python-modules/ipython-sql/default.nix @@ -1,32 +1,29 @@ { lib , buildPythonPackage -, fetchFromGitHub +, fetchPypi , pythonOlder +, setuptools , ipython , ipython-genutils -, pandas , prettytable -, pytest , sqlalchemy , sqlparse }: buildPythonPackage rec { pname = "ipython-sql"; - version = "0.4.0"; - format = "setuptools"; + version = "0.5.0"; + pyproject = true; disabled = pythonOlder "3.7"; - src = fetchFromGitHub { - owner = "catherinedevlin"; - repo = "ipython-sql"; - rev = "117764caf099d80100ed4b09fc004b55eed6f121"; - hash = "sha256-ScQihsvRSnC7VIgy8Tzi1z4x6KIZo0SAeLPvHAVdrfA="; + src = fetchPypi { + inherit pname version; + hash = "sha256-PbPOf5qV369Dh2+oCxa9u5oE3guhIELKsT6fWW/P/b4="; }; - postPatch = '' - substituteInPlace setup.py --replace 'prettytable<1' prettytable - ''; + nativeBuildInputs = [ + setuptools + ]; propagatedBuildInputs = [ ipython @@ -36,17 +33,8 @@ buildPythonPackage rec { sqlparse ]; - nativeCheckInputs = [ 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 - ''; + # pypi tarball has no tests + doCheck = false; pythonImportsCheck = [ "sql" ]; |
