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