1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pandas, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "vega-datasets"; 12 version = "0.9.0"; 13 pyproject = true; 14 15 src = fetchPypi { 16 pname = "vega_datasets"; 17 inherit version; 18 hash = "sha256-nb6YNCCOjsMqtElw3zFd6RAoYeTNoT2OFDqreoDZP8A="; 19 }; 20 21 nativeBuildInputs = [ setuptools ]; 22 23 propagatedBuildInputs = [ pandas ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 pytestFlagsArray = [ "--doctest-modules" ]; 28 29 pythonImportsCheck = [ "vega_datasets" ]; 30 31 meta = 32 with lib; 33 let 34 tag = removeSuffix ".0" "v${version}"; 35 in 36 { 37 description = "A Python package for offline access to vega datasets"; 38 homepage = "https://github.com/altair-viz/vega_datasets"; 39 changelog = "https://github.com/altair-viz/vega_datasets/blob/${tag}/CHANGES.md"; 40 license = licenses.mit; 41 }; 42}