mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
42 lines
889 B
Nix
42 lines
889 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 =
|
|
let
|
|
tag = lib.removeSuffix ".0" "v${version}";
|
|
in
|
|
{
|
|
description = "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 = lib.licenses.mit;
|
|
};
|
|
}
|