python312Packages.scikit-hep-testdata: refactor

This commit is contained in:
Fabian Affolter 2024-08-24 09:32:21 +02:00 committed by GitHub
parent 9666a67a56
commit 327fa4cf38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,20 +13,20 @@
buildPythonPackage rec {
pname = "scikit-hep-testdata";
version = "0.4.47";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "scikit-hep";
repo = pname;
repo = "scikit-hep-testdata";
rev = "refs/tags/v${version}";
hash = "sha256-YCzqAe+TVNbPrHPxD/OjxkjmYCb5pZO0+l68xUJp72w=";
};
nativeBuildInputs = [ setuptools-scm ];
build-system = [ setuptools-scm ];
propagatedBuildInputs = [
dependencies = [
pyyaml
requests
] ++ lib.optionals (!pythonAtLeast "3.9") [ importlib-resources ];