1{ stdenv, buildPythonPackage, fetchPypi 2, pytest, vega, pandas, ipython, traitlets }: 3 4buildPythonPackage rec { 5 pname = "altair"; 6 version = "1.2.1"; 7 name = "${pname}-${version}"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "c1303f77f1ba4d632f2958c83c0f457b2b969860b1ac9adfb872aefa1780baa7"; 12 }; 13 14 buildInputs = [ pytest ]; 15 16 checkPhase = '' 17 export LANG=en_US.UTF-8 18 py.test altair --doctest-modules 19 ''; 20 21 propagatedBuildInputs = [ vega pandas ipython traitlets ]; 22 # Disabling checks, MockRequest object has no method send() 23 doCheck = false; 24 25 meta = with stdenv.lib; { 26 description = "A declarative statistical visualization library for Python."; 27 homepage = https://github.com/altair-viz/altair; 28 license = licenses.bsd3; 29 maintainers = with maintainers; [ teh ]; 30 platforms = platforms.linux; 31 }; 32}