Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
985 B · 61 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ buildPythonPackage, lib, stdenv, cmake, cppe, eigen, python, pybind11, numpy, h5py, numba, scipy, pandas, polarizationsolver, pytest, llvmPackages,}:
buildPythonPackage rec { inherit (cppe) pname version src meta ;
# The python interface requires eigen3, but builds from a checkout in tree. # Using the nixpkgs version instead. postPatch = '' substituteInPlace setup.py \ --replace "external/eigen3" "${eigen}/include/eigen3" '';
nativeBuildInputs = [ cmake eigen ];
dontUseCmakeConfigure = true;
format = "setuptools";
buildInputs = [ pybind11 ] ++ lib.optional stdenv.cc.isClang llvmPackages.openmp;
NIX_CFLAGS_LINK = lib.optional stdenv.cc.isClang "-lomp";
hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow";
nativeCheckInputs = [ pytest h5py numba numpy pandas polarizationsolver scipy ];
pythonImportsCheck = [ "cppe" ];}