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