pythonPackages.python-openems: init at unstable-2020-02-15
This commit is contained in:
parent
69bf6db33e
commit
0c695515e2
49
pkgs/development/python-modules/python-openems/default.nix
Normal file
49
pkgs/development/python-modules/python-openems/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cython
|
||||
, openems
|
||||
, csxcad
|
||||
, boost
|
||||
, python-csxcad
|
||||
, numpy
|
||||
, h5py
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-openems";
|
||||
version = "unstable-2020-02-15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "thliebig";
|
||||
repo = "openEMS";
|
||||
rev = "ba793ac84e2f78f254d6d690bb5a4c626326bbfd";
|
||||
sha256 = "1dca6b6ccy771irxzsj075zvpa3dlzv4mjb8xyg9d889dqlgyl45";
|
||||
};
|
||||
|
||||
sourceRoot = "source/python";
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
boost
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
openems
|
||||
csxcad
|
||||
python-csxcad
|
||||
numpy
|
||||
h5py
|
||||
];
|
||||
|
||||
setupPyBuildFlags = "-I${openems}/include -L${openems}/lib -R${openems}/lib";
|
||||
pythonImportsCheck = [ "openEMS" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python interface to OpenEMS";
|
||||
homepage = "http://openems.de/index.php/Main_Page.html";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ matthuszagh ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -4510,6 +4510,8 @@ in {
|
||||
|
||||
python-csxcad = callPackage ../development/python-modules/python-csxcad { };
|
||||
|
||||
python-openems = callPackage ../development/python-modules/python-openems { };
|
||||
|
||||
pkutils = callPackage ../development/python-modules/pkutils { };
|
||||
|
||||
plac = callPackage ../development/python-modules/plac { };
|
||||
|
Loading…
Reference in New Issue
Block a user