1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

pythonPackages.altair: fix build

This commit is contained in:
Robert Schütz 2018-03-20 16:33:08 +01:00
parent 2773b76f33
commit 43d822178b

View file

@ -1,17 +1,20 @@
{ stdenv, buildPythonPackage, fetchPypi
, pytest, vega, pandas, ipython, traitlets }:
, pytest, glibcLocales, vega, pandas, ipython, traitlets }:
buildPythonPackage rec {
pname = "altair";
version = "1.2.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "c1303f77f1ba4d632f2958c83c0f457b2b969860b1ac9adfb872aefa1780baa7";
};
buildInputs = [ pytest ];
postPatch = ''
sed -i "s/vega==/vega>=/g" setup.py
'';
checkInputs = [ pytest glibcLocales ];
checkPhase = ''
export LANG=en_US.UTF-8
@ -19,8 +22,6 @@ buildPythonPackage rec {
'';
propagatedBuildInputs = [ vega pandas ipython traitlets ];
# Disabling checks, MockRequest object has no method send()
doCheck = false;
meta = with stdenv.lib; {
description = "A declarative statistical visualization library for Python.";