3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/altair/default.nix
R. RyanTM 8def4eb3a1 python37Packages.altair: 3.0.1 -> 3.1.0
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-altair/versions
2019-07-02 01:45:22 -07:00

38 lines
1.1 KiB
Nix

{ stdenv, buildPythonPackage, fetchPypi
, pytest, jinja2, sphinx, vega_datasets, ipython, glibcLocales
, entrypoints, jsonschema, numpy, pandas, six, toolz, typing
, pythonOlder, recommonmark }:
buildPythonPackage rec {
pname = "altair";
version = "3.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1zdznkybw3g8fd280h5j5cnnwcv30610gp8fl8vwqda1w2p6pgvp";
};
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 ];
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;
};
}