@@ -1,5 +1,6 @@
1−{ stdenv, buildPythonPackage, fetchPypi
2−, pytest, glibcLocales, vega, pandas, ipython, traitlets }:
1+{ stdenv, buildPythonPackage, fetchPypi, fetchpatch
2+, pytest, jinja2, sphinx, vega_datasets, ipython, glibcLocales
3+, entrypoints, jsonschema, numpy, pandas, six, toolz, typing }:
34
45buildPythonPackage rec {
56 pname = "altair";
@@ -10,18 +11,19 @@ buildPythonPackage rec {
1011 sha256 = "e8b222588dde98ec614e6808357fde7fa321118db44cc909df2bf30158d931c0";
1112 };
1213
13− postPatch = ''
14− sed -i "s/vega==/vega>=/g" setup.py
15− '';
14+ patches = fetchpatch {
15+ url = https://github.com/altair-viz/altair/commit/bfca8aecce9593c48aa5834e3f8f841deb58391c.patch;
16+ sha256 = "01izc5d8c6ry3mh0k0hfasb6jc4720g75yw2qdlp9ja8mnjsp4k3";
17+ };
1618
17− checkInputs = [ pytest glibcLocales ];
19+ checkInputs = [ pytest jinja2 sphinx vega_datasets ipython glibcLocales ];
1820
1921 checkPhase = ''
2022 export LANG=en_US.UTF-8
2123 py.test altair --doctest-modules
2224 '';
2325
24− propagatedBuildInputs = [ vega pandas ipython traitlets ];
26+ propagatedBuildInputs = [ entrypoints jsonschema numpy pandas six toolz typing ];
2527
2628 meta = with stdenv.lib; {
2729 description = "A declarative statistical visualization library for Python.";