python.pkgs.altair: fix build
This commit is contained in:
parent
de0c67572f
commit
e82de5730f
@ -1,5 +1,6 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi
|
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch
|
||||||
, pytest, glibcLocales, vega, pandas, ipython, traitlets }:
|
, pytest, jinja2, sphinx, vega_datasets, ipython, glibcLocales
|
||||||
|
, entrypoints, jsonschema, numpy, pandas, six, toolz, typing }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "altair";
|
pname = "altair";
|
||||||
@ -10,18 +11,19 @@ buildPythonPackage rec {
|
|||||||
sha256 = "e8b222588dde98ec614e6808357fde7fa321118db44cc909df2bf30158d931c0";
|
sha256 = "e8b222588dde98ec614e6808357fde7fa321118db44cc909df2bf30158d931c0";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
patches = fetchpatch {
|
||||||
sed -i "s/vega==/vega>=/g" setup.py
|
url = https://github.com/altair-viz/altair/commit/bfca8aecce9593c48aa5834e3f8f841deb58391c.patch;
|
||||||
'';
|
sha256 = "01izc5d8c6ry3mh0k0hfasb6jc4720g75yw2qdlp9ja8mnjsp4k3";
|
||||||
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest glibcLocales ];
|
checkInputs = [ pytest jinja2 sphinx vega_datasets ipython glibcLocales ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
py.test altair --doctest-modules
|
py.test altair --doctest-modules
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ vega pandas ipython traitlets ];
|
propagatedBuildInputs = [ entrypoints jsonschema numpy pandas six toolz typing ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A declarative statistical visualization library for Python.";
|
description = "A declarative statistical visualization library for Python.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user