2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonAtLeast,
|
|
|
|
buildPythonPackage,
|
|
|
|
importlib-resources,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
setuptools-scm,
|
|
|
|
pythonOlder,
|
2021-06-04 09:07:49 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scikit-hep-testdata";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.4.46";
|
2021-06-04 09:07:49 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scikit-hep";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-lihStYseIthw74kMSDHYpYaLCJGIKlx4gb0VqQu8tc4=";
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2022-12-28 21:21:41 +00:00
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyyaml
|
|
|
|
requests
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (!pythonAtLeast "3.9") [ importlib-resources ];
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
SKHEP_DATA = 1; # install the actual root files
|
|
|
|
|
|
|
|
doCheck = false; # tests require networking
|
2022-12-28 21:21:41 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "skhep_testdata" ];
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/scikit-hep/scikit-hep-testdata";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Common package to provide example files (e.g., ROOT) for testing and developing packages against";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/scikit-hep/scikit-hep-testdata/releases/tag/v${version}";
|
2021-06-04 09:07:49 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|