9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, pythonAtLeast
|
|
, buildPythonPackage
|
|
, importlib-resources
|
|
, pyyaml
|
|
, requests
|
|
, setuptools-scm
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scikit-hep-testdata";
|
|
version = "0.4.31";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scikit-hep";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/CUBRRezm84yAqnEVAC89vKIpALnvSkoSKBCmX84S0w=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
requests
|
|
] ++ lib.optionals (!pythonAtLeast "3.9") [
|
|
importlib-resources
|
|
];
|
|
|
|
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";
|
|
changelog = "https://github.com/scikit-hep/scikit-hep-testdata/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ veprbl ];
|
|
};
|
|
}
|