2018-07-15 14:29:23 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pandas, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vega_datasets";
|
2019-12-19 19:31:25 +00:00
|
|
|
version = "0.8.0";
|
2018-07-15 14:29:23 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:25 +00:00
|
|
|
sha256 = "db8883dab72b6f414e1fafdbf1e8db7543bba6ed77912a4e0c197d74fcfa1c20";
|
2018-07-15 14:29:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pandas ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-08-07 02:55:42 +01:00
|
|
|
py.test vega_datasets --doctest-modules -k 'not column_names'
|
2018-07-15 14:29:23 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python package for offline access to vega datasets";
|
|
|
|
homepage = https://github.com/altair-viz/vega_datasets;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|