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

36 lines
1.1 KiB
Nix
Raw Normal View History

2018-07-15 15:38:42 +02:00
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch
, pytest, jinja2, sphinx, vega_datasets, ipython, glibcLocales
, entrypoints, jsonschema, numpy, pandas, six, toolz, typing }:
buildPythonPackage rec {
pname = "altair";
2018-06-12 18:25:22 +02:00
version = "2.1.0";
src = fetchPypi {
inherit pname version;
2018-06-12 18:25:22 +02:00
sha256 = "e8b222588dde98ec614e6808357fde7fa321118db44cc909df2bf30158d931c0";
};
2018-07-15 15:38:42 +02:00
patches = fetchpatch {
url = https://github.com/altair-viz/altair/commit/bfca8aecce9593c48aa5834e3f8f841deb58391c.patch;
sha256 = "01izc5d8c6ry3mh0k0hfasb6jc4720g75yw2qdlp9ja8mnjsp4k3";
};
2018-03-20 16:33:08 +01:00
2018-07-15 15:38:42 +02:00
checkInputs = [ pytest jinja2 sphinx vega_datasets ipython glibcLocales ];
checkPhase = ''
export LANG=en_US.UTF-8
py.test altair --doctest-modules
'';
2018-07-15 15:38:42 +02:00
propagatedBuildInputs = [ entrypoints jsonschema numpy pandas six toolz typing ];
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;
};
}