pythonPackages.altair: fix build
This commit is contained in:
parent
2773b76f33
commit
43d822178b
@ -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.";
|
||||
|
Loading…
Reference in New Issue
Block a user