2020-10-19 00:13:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-04-21 15:54:59 +00:00
|
|
|
, cython_0
|
2020-10-19 00:13:06 +00:00
|
|
|
, openems
|
|
|
|
, csxcad
|
|
|
|
, boost
|
|
|
|
, python-csxcad
|
|
|
|
, numpy
|
|
|
|
, h5py
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-openems";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = openems.version;
|
|
|
|
format = "setuptools";
|
2020-10-19 00:13:06 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = openems.src;
|
2020-10-19 00:13:06 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/python";
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
cython_0
|
2020-10-19 00:13:06 +00:00
|
|
|
boost
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
openems
|
|
|
|
csxcad
|
|
|
|
python-csxcad
|
|
|
|
numpy
|
|
|
|
h5py
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
setupPyBuildFlags = [ "-I${openems}/include" "-L${openems}/lib" "-R${openems}/lib" ];
|
2020-10-19 00:13:06 +00:00
|
|
|
pythonImportsCheck = [ "openEMS" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface to OpenEMS";
|
|
|
|
homepage = "http://openems.de/index.php/Main_Page.html";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ matthuszagh ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|