2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
, entrypoints
|
|
|
|
, glibcLocales
|
|
|
|
, ipython
|
|
|
|
, jinja2
|
|
|
|
, jsonschema
|
|
|
|
, numpy
|
|
|
|
, pandas
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, pythonOlder
|
|
|
|
, recommonmark
|
|
|
|
, six
|
|
|
|
, sphinx
|
|
|
|
, toolz
|
2021-04-26 19:14:03 +00:00
|
|
|
, typing ? null
|
2020-04-24 23:36:52 +00:00
|
|
|
, vega_datasets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "altair";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "4.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "d87d9372e63b48cd96b2a6415f0cf9457f50162ab79dc7a31cd7e024dd840026";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
entrypoints
|
|
|
|
jsonschema
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
six
|
|
|
|
toolz
|
2021-03-23 19:22:30 +00:00
|
|
|
jinja2
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.5") [ typing ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
glibcLocales
|
|
|
|
ipython
|
2022-02-10 20:34:41 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
recommonmark
|
|
|
|
sphinx
|
|
|
|
vega_datasets
|
|
|
|
];
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
pythonImportsCheck = [ "altair" ];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
# avoid examples directory, which fetches web resources
|
|
|
|
preCheck = ''
|
|
|
|
cd altair/tests
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A declarative statistical visualization library for Python.";
|
|
|
|
homepage = "https://github.com/altair-viz/altair";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ teh ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|