3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/altair/default.nix
2018-03-20 17:32:49 +01:00

34 lines
836 B
Nix

{ stdenv, buildPythonPackage, fetchPypi
, pytest, glibcLocales, vega, pandas, ipython, traitlets }:
buildPythonPackage rec {
pname = "altair";
version = "1.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "c1303f77f1ba4d632f2958c83c0f457b2b969860b1ac9adfb872aefa1780baa7";
};
postPatch = ''
sed -i "s/vega==/vega>=/g" setup.py
'';
checkInputs = [ pytest glibcLocales ];
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;
};
}