nixpkgs/pkgs/development/python-modules/altair/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2018-07-15 14:38:42 +01:00
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch
, pytest, jinja2, sphinx, vega_datasets, ipython, glibcLocales
, entrypoints, jsonschema, numpy, pandas, six, toolz, typing
, pythonOlder, recommonmark }:
buildPythonPackage rec {
pname = "altair";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0x4zm1xia6sln8dhwd803jlcii2a62fx3rlnj5vsa8g3anfc2v24";
};
2019-02-17 11:51:12 +00:00
postPatch = ''
# Tests require network
rm altair/examples/boxplot_max_min.py altair/examples/line_percent.py
'';
checkInputs = [ pytest jinja2 sphinx vega_datasets ipython glibcLocales recommonmark ];
propagatedBuildInputs = [ entrypoints jsonschema numpy pandas six toolz ]
++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ];
2018-03-20 15:33:08 +00:00
checkPhase = ''
export LANG=en_US.UTF-8
py.test altair --doctest-modules
'';
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.unix;
};
}