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