Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 59 lines 1.0 kB view raw
1{ stdenv, buildPythonPackage, fetchPypi 2, entrypoints 3, glibcLocales 4, ipython 5, jinja2 6, jsonschema 7, numpy 8, pandas 9, pytest 10, pythonOlder 11, recommonmark 12, six 13, sphinx 14, toolz 15, typing 16, vega_datasets 17}: 18 19buildPythonPackage rec { 20 pname = "altair"; 21 version = "3.2.0"; 22 23 src = fetchPypi { 24 inherit pname version; 25 sha256 = "098macm0sw54xqijdy1c8cppcgw79wn52qdc71qqb51nibc17gls"; 26 }; 27 28 propagatedBuildInputs = [ 29 entrypoints 30 jsonschema 31 numpy 32 pandas 33 six 34 toolz 35 ] ++ stdenv.lib.optionals (pythonOlder "3.5") [ typing ]; 36 37 checkInputs = [ 38 glibcLocales 39 ipython 40 jinja2 41 pytest 42 recommonmark 43 sphinx 44 vega_datasets 45 ]; 46 47 checkPhase = '' 48 export LANG=en_US.UTF-8 49 pytest --doctest-modules altair 50 ''; 51 52 meta = with stdenv.lib; { 53 description = "A declarative statistical visualization library for Python."; 54 homepage = https://github.com/altair-viz/altair; 55 license = licenses.bsd3; 56 maintainers = with maintainers; [ teh ]; 57 platforms = platforms.unix; 58 }; 59}