Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 33 lines 836 B view raw
1{ stdenv, buildPythonPackage, fetchPypi 2, pytest, glibcLocales, vega, pandas, ipython, traitlets }: 3 4buildPythonPackage rec { 5 pname = "altair"; 6 version = "1.2.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "c1303f77f1ba4d632f2958c83c0f457b2b969860b1ac9adfb872aefa1780baa7"; 11 }; 12 13 postPatch = '' 14 sed -i "s/vega==/vega>=/g" setup.py 15 ''; 16 17 checkInputs = [ pytest glibcLocales ]; 18 19 checkPhase = '' 20 export LANG=en_US.UTF-8 21 py.test altair --doctest-modules 22 ''; 23 24 propagatedBuildInputs = [ vega pandas ipython traitlets ]; 25 26 meta = with stdenv.lib; { 27 description = "A declarative statistical visualization library for Python."; 28 homepage = https://github.com/altair-viz/altair; 29 license = licenses.bsd3; 30 maintainers = with maintainers; [ teh ]; 31 platforms = platforms.linux; 32 }; 33}