blob: 09da2c1f0792f79c5035950cedb9b5a7df37c0eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
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 = "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;
};
}
|