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