cppe: init at 0.3.1

cppe: move pytestCheckHook to checkInputs


cppe: hash


cppe: license and hash


cppe: formatting


python3.pkgs.cppe: more tests


cppe: formatting


cppe: formatting


cppe: platforms


cppe: platforms
This commit is contained in:
Phillip Seeber
2021-11-10 12:30:09 +01:00
parent a6a5114653
commit 938a9e00c5
4 changed files with 78 additions and 0 deletions
@@ -0,0 +1,47 @@
{ buildPythonPackage
, lib
, cmake
, cppe
, eigen
, python
, pybind11
, numpy
, h5py
, numba
, scipy
, pandas
, polarizationsolver
, pytest
}:
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;
buildInputs = [ pybind11 ];
checkInputs = [
pytest
h5py
numba
numpy
pandas
polarizationsolver
scipy
];
pythonImportsCheck = [ "cppe" ];
}