mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
pythonPackages.altair: fix build
This commit is contained in:
parent
2773b76f33
commit
43d822178b
1 changed files with 6 additions and 5 deletions
|
@ -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 a new issue