1{ stdenv, buildPythonPackage, fetchPypi
2, pytest, vega, pandas, ipython, traitlets }:
3
4buildPythonPackage rec {
5 pname = "altair";
6 version = "1.2.0";
7 name = "${pname}-${version}";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "05c47dm20p7m0017p2h38il721rxag1q0457dj7whp0k8rc7qd1n";
12 };
13
14 buildInputs = [ pytest ];
15
16 checkPhase = ''
17 export LANG=en_US.UTF-8
18 py.test altair --doctest-modules
19 '';
20
21 propagatedBuildInputs = [ vega pandas ipython traitlets ];
22
23 meta = with stdenv.lib; {
24 description = "A declarative statistical visualization library for Python.";
25 homepage = https://github.com/altair-viz/altair;
26 license = licenses.bsd3;
27 maintainers = with maintainers; [ teh ];
28 platforms = platforms.linux;
29 };
30}