git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.altair: fix build
commit43d822178bc933bc5dce38d4ff71b50dab081758 authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de> dateTue 20 Mar 2018, 16:33 (9 years ago) parent2773b76
1 file changed+6−5
pkgs/development/python-modules/altair/default.nix+6−5
pkgs/development/python-modules/altair/default.nix+6−5
@@ -1,17 +1,20 @@
11{ stdenv, buildPythonPackage, fetchPypi
2−, pytest, vega, pandas, ipython, traitlets }:
2+, pytest, glibcLocales, vega, pandas, ipython, traitlets }:
33
44buildPythonPackage rec {
55 pname = "altair";
66 version = "1.2.1";
7− name = "${pname}-${version}";
87
98 src = fetchPypi {
109 inherit pname version;
1110 sha256 = "c1303f77f1ba4d632f2958c83c0f457b2b969860b1ac9adfb872aefa1780baa7";
1211 };
1312
14− buildInputs = [ pytest ];
13+ postPatch = ''
14+ sed -i "s/vega==/vega>=/g" setup.py
15+ '';
16+
17+ checkInputs = [ pytest glibcLocales ];
1518
1619 checkPhase = ''
1720 export LANG=en_US.UTF-8
@@ -19,8 +22,6 @@ buildPythonPackage rec {
1922 '';
2023
2124 propagatedBuildInputs = [ vega pandas ipython traitlets ];
22− # Disabling checks, MockRequest object has no method send()
23− doCheck = false;
2425
2526 meta = with stdenv.lib; {
2627 description = "A declarative statistical visualization library for Python.";