1{ stdenv, buildPythonPackage, fetchPypi, fetchpatch
2, pytest, jinja2, sphinx, vega_datasets, ipython, glibcLocales
3, entrypoints, jsonschema, numpy, pandas, six, toolz, typing }:
4
5buildPythonPackage rec {
6 pname = "altair";
7 version = "2.1.0";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "e8b222588dde98ec614e6808357fde7fa321118db44cc909df2bf30158d931c0";
12 };
13
14 patches = fetchpatch {
15 url = https://github.com/altair-viz/altair/commit/bfca8aecce9593c48aa5834e3f8f841deb58391c.patch;
16 sha256 = "01izc5d8c6ry3mh0k0hfasb6jc4720g75yw2qdlp9ja8mnjsp4k3";
17 };
18
19 checkInputs = [ pytest jinja2 sphinx vega_datasets ipython glibcLocales ];
20
21 checkPhase = ''
22 export LANG=en_US.UTF-8
23 py.test altair --doctest-modules
24 '';
25
26 propagatedBuildInputs = [ entrypoints jsonschema numpy pandas six toolz typing ];
27
28 meta = with stdenv.lib; {
29 description = "A declarative statistical visualization library for Python.";
30 homepage = https://github.com/altair-viz/altair;
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ teh ];
33 platforms = platforms.linux;
34 };
35}