2017-07-15 06:58:25 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2018-03-20 15:33:08 +00:00
|
|
|
, pytest, glibcLocales, vega, pandas, ipython, traitlets }:
|
2017-07-15 06:58:25 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "altair";
|
2018-06-12 17:25:22 +01:00
|
|
|
version = "2.1.0";
|
2017-07-15 06:58:25 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 17:25:22 +01:00
|
|
|
sha256 = "e8b222588dde98ec614e6808357fde7fa321118db44cc909df2bf30158d931c0";
|
2017-07-15 06:58:25 +01:00
|
|
|
};
|
|
|
|
|
2018-03-20 15:33:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i "s/vega==/vega>=/g" setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ pytest glibcLocales ];
|
2017-07-15 06:58:25 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
py.test altair --doctest-modules
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ vega pandas ipython traitlets ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A declarative statistical visualization library for Python.";
|
|
|
|
homepage = https://github.com/altair-viz/altair;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ teh ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|