1{ 2 lib, 3 buildPythonPackage, 4 cython_0, 5 openems, 6 csxcad, 7 boost, 8 python-csxcad, 9 numpy, 10 h5py, 11}: 12 13buildPythonPackage rec { 14 pname = "python-openems"; 15 version = openems.version; 16 format = "setuptools"; 17 18 src = openems.src; 19 20 sourceRoot = "${src.name}/python"; 21 22 nativeBuildInputs = [ 23 cython_0 24 boost 25 ]; 26 27 propagatedBuildInputs = [ 28 openems 29 csxcad 30 python-csxcad 31 numpy 32 h5py 33 ]; 34 35 setupPyBuildFlags = [ 36 "-I${openems}/include" 37 "-L${openems}/lib" 38 "-R${openems}/lib" 39 ]; 40 pythonImportsCheck = [ "openEMS" ]; 41 42 meta = with lib; { 43 description = "Python interface to OpenEMS"; 44 homepage = "http://openems.de/index.php/Main_Page.html"; 45 license = licenses.gpl3; 46 maintainers = with maintainers; [ matthuszagh ]; 47 platforms = platforms.linux; 48 }; 49}