depot/third_party/nixpkgs/pkgs/development/python-modules/scikit-hep-testdata/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

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.48";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "scikit-hep";
repo = "scikit-hep-testdata";
rev = "refs/tags/v${version}";
hash = "sha256-B0YmO48aGDRsQ56+q7/Z6xquCNjbAQ55fkY6auvwB90=";
};
build-system = [ setuptools-scm ];
dependencies = [
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 ];
};
}