2019-10-20 18:04:20 -07:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-03-24 03:25:37 +01:00
|
|
|
, cython_0
|
2019-10-20 18:04:20 -07:00
|
|
|
, openems
|
|
|
|
, csxcad
|
|
|
|
, boost
|
|
|
|
, python-csxcad
|
|
|
|
, numpy
|
|
|
|
, h5py
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-openems";
|
2023-12-03 20:56:37 -05:00
|
|
|
version = openems.version;
|
2023-12-07 16:53:02 +13:00
|
|
|
format = "setuptools";
|
2019-10-20 18:04:20 -07:00
|
|
|
|
2023-12-03 20:56:37 -05:00
|
|
|
src = openems.src;
|
2019-10-20 18:04:20 -07:00
|
|
|
|
2023-07-25 13:27:31 +00:00
|
|
|
sourceRoot = "${src.name}/python";
|
2019-10-20 18:04:20 -07:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-03-24 03:25:37 +01:00
|
|
|
cython_0
|
2019-10-20 18:04:20 -07:00
|
|
|
boost
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
openems
|
|
|
|
csxcad
|
|
|
|
python-csxcad
|
|
|
|
numpy
|
|
|
|
h5py
|
|
|
|
];
|
|
|
|
|
2022-10-03 16:56:51 +03:00
|
|
|
setupPyBuildFlags = [ "-I${openems}/include" "-L${openems}/lib" "-R${openems}/lib" ];
|
2019-10-20 18:04:20 -07: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;
|
|
|
|
};
|
|
|
|
}
|