2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
pandas,
|
|
|
|
pytestCheckHook,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vega-datasets";
|
|
|
|
version = "0.9.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "vega_datasets";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-nb6YNCCOjsMqtElw3zFd6RAoYeTNoT2OFDqreoDZP8A=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ pandas ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "--doctest-modules" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "vega_datasets" ];
|
|
|
|
|
|
|
|
meta =
|
|
|
|
let
|
2024-09-19 14:19:46 +00:00
|
|
|
tag = lib.removeSuffix ".0" "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
in
|
|
|
|
{
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python package for offline access to vega datasets";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/altair-viz/vega_datasets";
|
|
|
|
changelog = "https://github.com/altair-viz/vega_datasets/blob/${tag}/CHANGES.md";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
2023-11-16 04:20:00 +00:00
|
|
|
}
|