python310Packages.vega: 3.6.0 -> 4.0.0
Diff: https://github.com/vega/ipyvega/compare/v3.6.0...v4.0.0 Changelog: https://github.com/vega/ipyvega/releases/tag/v4.0.0
This commit is contained in:
parent
a887febd06
commit
7c450c934e
1 changed files with 59 additions and 9 deletions
|
@ -1,20 +1,71 @@
|
|||
{ lib, buildPythonPackage , fetchPypi, pythonOlder
|
||||
, jupyter-core, pandas, ipywidgets, jupyter }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, pythonRelaxDepsHook
|
||||
, altair
|
||||
, ipytablewidgets
|
||||
, ipywidgets
|
||||
, jupyter
|
||||
, jupyter-core
|
||||
, jupyterlab
|
||||
, pandas
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vega";
|
||||
version = "3.6.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
version = "4.0.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-cO+7Ynbv/+uoNUOPQvDNZji04llHUBlm95Cyfy+Ny80=";
|
||||
hash = "sha256-v1/8taHdN1n9+gy7L+g/wAJ2x9FwYCaxZiEdFqLct1Y=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ jupyter jupyter-core pandas ipywidgets ];
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "poetry.masonry.api" "poetry.core.masonry.api"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"pandas"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ipytablewidgets
|
||||
jupyter
|
||||
jupyter-core
|
||||
pandas
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
widget = [
|
||||
ipywidgets
|
||||
];
|
||||
jupyterlab = [
|
||||
jupyterlab
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
altair
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# these tests are broken with jupyter-notebook >= 7
|
||||
"vega/tests/test_entrypoint.py"
|
||||
];
|
||||
|
||||
# currently, recommonmark is broken on python3
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "vega" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -28,6 +79,5 @@ buildPythonPackage rec {
|
|||
homepage = "https://github.com/vega/ipyvega";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ teh ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue