mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 12:00:20 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
50 lines
822 B
Nix
50 lines
822 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cython_0,
|
|
openems,
|
|
csxcad,
|
|
boost,
|
|
python-csxcad,
|
|
numpy,
|
|
h5py,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-openems";
|
|
version = openems.version;
|
|
format = "setuptools";
|
|
|
|
src = openems.src;
|
|
|
|
sourceRoot = "${src.name}/python";
|
|
|
|
nativeBuildInputs = [
|
|
cython_0
|
|
boost
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
openems
|
|
csxcad
|
|
python-csxcad
|
|
numpy
|
|
h5py
|
|
];
|
|
|
|
setupPyBuildFlags = [
|
|
"-I${openems}/include"
|
|
"-L${openems}/lib"
|
|
"-R${openems}/lib"
|
|
];
|
|
pythonImportsCheck = [ "openEMS" ];
|
|
|
|
meta = {
|
|
description = "Python interface to OpenEMS";
|
|
homepage = "http://openems.de/index.php/Main_Page.html";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ matthuszagh ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|