Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.11 47 lines 704 B view raw
1{ buildPythonPackage 2, lib 3, cmake 4, cppe 5, eigen 6, python 7, pybind11 8, numpy 9, h5py 10, numba 11, scipy 12, pandas 13, polarizationsolver 14, pytest 15}: 16 17buildPythonPackage rec { 18 inherit (cppe) pname version src meta; 19 20 # The python interface requires eigen3, but builds from a checkout in tree. 21 # Using the nixpkgs version instead. 22 postPatch = '' 23 substituteInPlace setup.py \ 24 --replace "external/eigen3" "${eigen}/include/eigen3" 25 ''; 26 27 nativeBuildInputs = [ 28 cmake 29 eigen 30 ]; 31 32 dontUseCmakeConfigure = true; 33 34 buildInputs = [ pybind11 ]; 35 36 checkInputs = [ 37 pytest 38 h5py 39 numba 40 numpy 41 pandas 42 polarizationsolver 43 scipy 44 ]; 45 46 pythonImportsCheck = [ "cppe" ]; 47}