2017-07-15 05:58:25 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, pytest, vega, pandas, ipython, traitlets }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "altair";
|
2017-10-25 18:04:35 +00:00
|
|
|
version = "1.2.1";
|
2017-07-15 05:58:25 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 18:04:35 +00:00
|
|
|
sha256 = "c1303f77f1ba4d632f2958c83c0f457b2b969860b1ac9adfb872aefa1780baa7";
|
2017-07-15 05:58:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
py.test altair --doctest-modules
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ vega pandas ipython traitlets ];
|
2017-09-15 01:22:44 +00:00
|
|
|
# Disabling checks, MockRequest object has no method send()
|
|
|
|
doCheck = false;
|
2017-07-15 05:58:25 +00:00
|
|
|
|
|
|
|
meta = with stdenv.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.linux;
|
|
|
|
};
|
|
|
|
}
|