commit
7a6a27b9c4
@ -1,30 +1,52 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
, pytest, jinja2, sphinx, vega_datasets, ipython, glibcLocales
|
, entrypoints
|
||||||
, entrypoints, jsonschema, numpy, pandas, six, toolz, typing
|
, glibcLocales
|
||||||
, pythonOlder, recommonmark }:
|
, ipython
|
||||||
|
, jinja2
|
||||||
|
, jsonschema
|
||||||
|
, numpy
|
||||||
|
, pandas
|
||||||
|
, pytest
|
||||||
|
, pythonOlder
|
||||||
|
, recommonmark
|
||||||
|
, six
|
||||||
|
, sphinx
|
||||||
|
, toolz
|
||||||
|
, typing
|
||||||
|
, vega_datasets
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "altair";
|
pname = "altair";
|
||||||
version = "3.1.0";
|
version = "3.2.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1zdznkybw3g8fd280h5j5cnnwcv30610gp8fl8vwqda1w2p6pgvp";
|
sha256 = "098macm0sw54xqijdy1c8cppcgw79wn52qdc71qqb51nibc17gls";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
propagatedBuildInputs = [
|
||||||
# Tests require network
|
entrypoints
|
||||||
rm altair/examples/boxplot_max_min.py altair/examples/line_percent.py
|
jsonschema
|
||||||
'';
|
numpy
|
||||||
|
pandas
|
||||||
|
six
|
||||||
|
toolz
|
||||||
|
] ++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
|
||||||
|
|
||||||
checkInputs = [ pytest jinja2 sphinx vega_datasets ipython glibcLocales recommonmark ];
|
checkInputs = [
|
||||||
|
glibcLocales
|
||||||
propagatedBuildInputs = [ entrypoints jsonschema numpy pandas six toolz ]
|
ipython
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
|
jinja2
|
||||||
|
pytest
|
||||||
|
recommonmark
|
||||||
|
sphinx
|
||||||
|
vega_datasets
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
py.test altair --doctest-modules
|
pytest --doctest-modules altair
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -14,7 +14,7 @@ buildPythonPackage rec {
|
|||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test vega_datasets --doctest-modules
|
py.test vega_datasets --doctest-modules -k 'not column_names'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user