Merge pull request #265390 from natsukium/vega-datasets

python311Packages.vega-datasets: rename from vega_datasets
This commit is contained in:
OTABI Tomoya 2023-11-05 10:02:19 +09:00 committed by GitHub
commit e1a2239a14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 50 additions and 30 deletions

View File

@ -17,7 +17,7 @@
, anywidget
, ipython
, pytestCheckHook
, vega_datasets
, vega-datasets
, sphinx
}:
@ -51,7 +51,7 @@ buildPythonPackage rec {
anywidget
ipython
sphinx
vega_datasets
vega-datasets
pytestCheckHook
];

View File

@ -48,7 +48,7 @@
, torch
, tqdm
, transformers
, vega_datasets
, vega-datasets
}:
buildPythonPackage rec {
@ -118,7 +118,7 @@ buildPythonPackage rec {
torch
tqdm
transformers
vega_datasets
vega-datasets
];
# Add a pytest hook skipping tests that access network, marking them as "Expected fail" (xfail).

View File

@ -0,0 +1,44 @@
{ 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;
};
}

View File

@ -1,25 +0,0 @@
{ lib, buildPythonPackage, fetchPypi, pandas, pytest }:
buildPythonPackage rec {
pname = "vega_datasets";
version = "0.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "9dbe9834208e8ec32ab44970df315de9102861e4cda13d8e143aab7a80d93fc0";
};
propagatedBuildInputs = [ pandas ];
nativeCheckInputs = [ pytest ];
checkPhase = ''
py.test vega_datasets --doctest-modules -k 'not column_names'
'';
meta = with lib; {
description = "A Python package for offline access to vega datasets";
homepage = "https://github.com/altair-viz/vega_datasets";
license = licenses.mit;
};
}

View File

@ -422,6 +422,7 @@ mapAliases ({
uproot3 = throw "uproot3 has been removed, use uproot instead"; # added 2022-12-13
uproot3-methods = throw "uproot3-methods has been removed"; # added 2022-12-13
validictory = throw "validictory has been removed, since it abandoned"; # added 2023-07-07
vega_datasets = vega-datasets; # added 2023-11-04
ViennaRNA = viennarna; # added 2023-08-23
virtual-display = throw "virtual-display has been renamed to PyVirtualDisplay"; # added 2023-01-07
Wand = wand; # added 2022-11-13

View File

@ -15373,7 +15373,7 @@ self: super: with self; {
vega = callPackage ../development/python-modules/vega { };
vega_datasets = callPackage ../development/python-modules/vega_datasets { };
vega-datasets = callPackage ../development/python-modules/vega-datasets { };
venstarcolortouch = callPackage ../development/python-modules/venstarcolortouch { };