depot/third_party/nixpkgs/pkgs/development/python-modules/scikit-hep-testdata/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

47 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
pythonAtLeast,
buildPythonPackage,
importlib-resources,
pyyaml,
requests,
setuptools-scm,
pythonOlder,
}:
buildPythonPackage rec {
pname = "scikit-hep-testdata";
version = "0.4.45";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "scikit-hep";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-Kpn7Z+LJPZ9rNxQLXFtACJvfpRdDs58cy+1QlbbODLA=";
};
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 = "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 ];
};
}