Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 pythonAtLeast, 5 buildPythonPackage, 6 importlib-resources, 7 pyyaml, 8 requests, 9 setuptools-scm, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "scikit-hep-testdata"; 15 version = "0.4.46"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "scikit-hep"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-lihStYseIthw74kMSDHYpYaLCJGIKlx4gb0VqQu8tc4="; 25 }; 26 27 nativeBuildInputs = [ setuptools-scm ]; 28 29 propagatedBuildInputs = [ 30 pyyaml 31 requests 32 ] ++ lib.optionals (!pythonAtLeast "3.9") [ importlib-resources ]; 33 34 SKHEP_DATA = 1; # install the actual root files 35 36 doCheck = false; # tests require networking 37 38 pythonImportsCheck = [ "skhep_testdata" ]; 39 40 meta = with lib; { 41 homepage = "https://github.com/scikit-hep/scikit-hep-testdata"; 42 description = "Common package to provide example files (e.g., ROOT) for testing and developing packages against"; 43 changelog = "https://github.com/scikit-hep/scikit-hep-testdata/releases/tag/v${version}"; 44 license = licenses.bsd3; 45 maintainers = with maintainers; [ veprbl ]; 46 }; 47}