pythonPackages.scikit-hep-testdata: init at 0.4.3
This commit is contained in:
parent
2a6db4c056
commit
9d84a84639
|
@ -0,0 +1,47 @@
|
||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pythonAtLeast
|
||||||
|
, buildPythonPackage
|
||||||
|
, importlib-resources
|
||||||
|
, pyyaml
|
||||||
|
, requests
|
||||||
|
, pytestCheckHook
|
||||||
|
, setuptools-scm
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "scikit-hep-testdata";
|
||||||
|
version = "0.4.3";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
# fetch from github as we want the data files
|
||||||
|
# https://github.com/scikit-hep/scikit-hep-testdata/issues/60
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "scikit-hep";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-3uy2uZb0Y9nOHlXtsDd9LGALvTXl1ZQ6P3m2dQ2ceHo=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pyyaml
|
||||||
|
requests
|
||||||
|
] ++ lib.optional (!pythonAtLeast "3.9") importlib-resources;
|
||||||
|
|
||||||
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
|
SKHEP_DATA = 1; # install the actual root files
|
||||||
|
|
||||||
|
doCheck = false; # tests require networking
|
||||||
|
pythonImportsCheck = [ "skhep_testdata" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/scikit-hep/scikit-hep-testdata";
|
||||||
|
description = "A common package to provide example files (e.g., ROOT) for testing and developing packages against";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ veprbl ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -7448,6 +7448,8 @@ in {
|
||||||
|
|
||||||
scikit-fuzzy = callPackage ../development/python-modules/scikit-fuzzy { };
|
scikit-fuzzy = callPackage ../development/python-modules/scikit-fuzzy { };
|
||||||
|
|
||||||
|
scikit-hep-testdata = callPackage ../development/python-modules/scikit-hep-testdata { };
|
||||||
|
|
||||||
scikitimage = callPackage ../development/python-modules/scikit-image { };
|
scikitimage = callPackage ../development/python-modules/scikit-image { };
|
||||||
|
|
||||||
scikit-learn = callPackage ../development/python-modules/scikit-learn {
|
scikit-learn = callPackage ../development/python-modules/scikit-learn {
|
||||||
|
|
Loading…
Reference in a new issue