Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, cmake 6, ninja 7, numpy 8, pybind11 9, scikit-build-core 10, typing-extensions 11}: 12 13buildPythonPackage rec { 14 pname = "awkward-cpp"; 15 version = "22"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-IWeWNvshz+NxX4ijIyaleRmThNstpKYplcMQUC1/6F8="; 23 }; 24 25 nativeBuildInputs = [ 26 cmake 27 ninja 28 pybind11 29 scikit-build-core 30 ] ++ scikit-build-core.optional-dependencies.pyproject; 31 32 propagatedBuildInputs = [ 33 numpy 34 ]; 35 36 dontUseCmakeConfigure = true; 37 38 pythonImportsCheck = [ 39 "awkward_cpp" 40 ]; 41 42 meta = with lib; { 43 description = "CPU kernels and compiled extensions for Awkward Array"; 44 homepage = "https://github.com/scikit-hep/awkward"; 45 license = licenses.bsd3; 46 maintainers = with maintainers; [ veprbl ]; 47 }; 48}