11 buildPythonPackage rec {
12 pname = "scikit-hep-testdata";
16 # fetch from github as we want the data files
17 # https://github.com/scikit-hep/scikit-hep-testdata/issues/60
18 src = fetchFromGitHub {
21 rev = "refs/tags/v${version}";
22 sha256 = "sha256-DhOtoxjhczsYqOn+CwLGlRIPa2hh7mH6EfwcLLPMQcw=";
28 propagatedBuildInputs = [
31 ] ++ lib.optional (!pythonAtLeast "3.9") importlib-resources;
33 SETUPTOOLS_SCM_PRETEND_VERSION = version;
35 SKHEP_DATA = 1; # install the actual root files
37 doCheck = false; # tests require networking
38 pythonImportsCheck = [ "skhep_testdata" ];
41 homepage = "https://github.com/scikit-hep/scikit-hep-testdata";
42 description = "A common package to provide example files (e.g., ROOT) for testing and developing packages against";
43 license = licenses.bsd3;
44 maintainers = with maintainers; [ veprbl ];