ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / python-openems / default.nix
blob348f10b3aeede971226006cc7998bac3fd3911e4
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , cython
5 , openems
6 , csxcad
7 , boost
8 , python-csxcad
9 , numpy
10 , h5py
13 buildPythonPackage rec {
14   pname = "python-openems";
15   version = "unstable-2020-02-15";
17   src = fetchFromGitHub {
18     owner = "thliebig";
19     repo = "openEMS";
20     rev = "ba793ac84e2f78f254d6d690bb5a4c626326bbfd";
21     sha256 = "1dca6b6ccy771irxzsj075zvpa3dlzv4mjb8xyg9d889dqlgyl45";
22   };
24   sourceRoot = "source/python";
26   nativeBuildInputs = [
27     cython
28     boost
29   ];
31   propagatedBuildInputs = [
32     openems
33     csxcad
34     python-csxcad
35     numpy
36     h5py
37   ];
39   setupPyBuildFlags = [ "-I${openems}/include" "-L${openems}/lib" "-R${openems}/lib" ];
40   pythonImportsCheck = [ "openEMS" ];
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   };