Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27 2, entrypoints 3, glibcLocales 4, ipython 5, jinja2 6, jsonschema 7, numpy 8, pandas 9, pytestCheckHook 10, pythonOlder 11, recommonmark 12, six 13, sphinx 14, toolz 15, typing ? null 16, vega_datasets 17}: 18 19buildPythonPackage rec { 20 pname = "altair"; 21 version = "4.2.2"; 22 disabled = isPy27; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-OTmaJnxJsw0QLBBBHmerJjdBVqhLGuufzRUUBCm6ScU="; 27 }; 28 29 propagatedBuildInputs = [ 30 entrypoints 31 jsonschema 32 numpy 33 pandas 34 six 35 toolz 36 jinja2 37 ] ++ lib.optionals (pythonOlder "3.5") [ typing ]; 38 39 nativeCheckInputs = [ 40 glibcLocales 41 ipython 42 pytestCheckHook 43 recommonmark 44 sphinx 45 vega_datasets 46 ]; 47 48 pythonImportsCheck = [ "altair" ]; 49 50 # avoid examples directory, which fetches web resources 51 preCheck = '' 52 cd altair/tests 53 ''; 54 55 meta = with lib; { 56 description = "A declarative statistical visualization library for Python."; 57 homepage = "https://github.com/altair-viz/altair"; 58 license = licenses.bsd3; 59 maintainers = with maintainers; [ teh ]; 60 platforms = platforms.unix; 61 }; 62}