depot/third_party/nixpkgs/pkgs/development/python-modules/vega-datasets/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

42 lines
897 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pandas,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "vega-datasets";
version = "0.9.0";
pyproject = true;
src = fetchPypi {
pname = "vega_datasets";
inherit version;
hash = "sha256-nb6YNCCOjsMqtElw3zFd6RAoYeTNoT2OFDqreoDZP8A=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ pandas ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "--doctest-modules" ];
pythonImportsCheck = [ "vega_datasets" ];
meta =
with lib;
let
tag = removeSuffix ".0" "v${version}";
in
{
description = "A Python package for offline access to vega datasets";
homepage = "https://github.com/altair-viz/vega_datasets";
changelog = "https://github.com/altair-viz/vega_datasets/blob/${tag}/CHANGES.md";
license = licenses.mit;
};
}