nixpkgs/pkgs/development/python-modules/altair/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, isPy27
2019-08-07 02:00:18 +00:00
, entrypoints
, glibcLocales
, ipython
, jinja2
, jsonschema
, numpy
, pandas
2022-02-06 18:45:29 +00:00
, pytestCheckHook
2019-08-07 02:00:18 +00:00
, pythonOlder
, recommonmark
, six
, sphinx
, toolz
, typing ? null
2019-08-07 02:00:18 +00:00
, vega_datasets
}:
buildPythonPackage rec {
pname = "altair";
2022-01-14 00:58:05 +00:00
version = "4.2.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
2022-01-14 00:58:05 +00:00
sha256 = "d87d9372e63b48cd96b2a6415f0cf9457f50162ab79dc7a31cd7e024dd840026";
};
2019-08-07 02:00:18 +00:00
propagatedBuildInputs = [
entrypoints
jsonschema
numpy
pandas
six
toolz
jinja2
] ++ lib.optionals (pythonOlder "3.5") [ typing ];
2019-08-07 02:00:18 +00:00
checkInputs = [
glibcLocales
ipython
2022-02-06 18:45:29 +00:00
pytestCheckHook
2019-08-07 02:00:18 +00:00
recommonmark
sphinx
vega_datasets
];
2018-03-20 15:33:08 +00:00
pythonImportsCheck = [ "altair" ];
2022-02-06 18:45:29 +00:00
# avoid examples directory, which fetches web resources
preCheck = ''
cd altair/tests
'';
meta = with lib; {
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;
};
}