Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / python-csxcad / default.nix
blob885208e0e61ca53904efe1f4e7e88f77cc4f78fc
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , cython
5 , openems
6 , csxcad
7 , numpy
8 , matplotlib
9 }:
11 buildPythonPackage rec {
12   pname = "python-csxcad";
13   version = "unstable-2020-02-18";
15   src = fetchFromGitHub {
16     owner = "thliebig";
17     repo = "CSXCAD";
18     rev = "ef6e40931dbd80e0959f37c8e9614c437bf7e518";
19     sha256 = "072s765jyzpdq8qqysdy0dld17m6sr9zfcs0ip2zk8c4imxaysnb";
20   };
22   sourceRoot = "source/python";
24   nativeBuildInputs = [
25     cython
26   ];
28   propagatedBuildInputs = [
29     openems
30     csxcad
31     numpy
32     matplotlib
33   ];
35   setupPyBuildFlags = "-I${openems}/include -L${openems}/lib -R${openems}/lib";
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   };