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