2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cython,
|
|
|
|
openems,
|
|
|
|
csxcad,
|
|
|
|
numpy,
|
|
|
|
matplotlib,
|
2020-10-07 09:15:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-csxcad";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = csxcad.version;
|
|
|
|
format = "setuptools";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = csxcad.src;
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/python";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
openems
|
|
|
|
csxcad
|
|
|
|
numpy
|
|
|
|
matplotlib
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
setupPyBuildFlags = [
|
|
|
|
"-I${openems}/include"
|
|
|
|
"-L${openems}/lib"
|
|
|
|
"-R${openems}/lib"
|
|
|
|
];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface to CSXCAD";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "http://openems.de/index.php/Main_Page.html";
|
2020-10-07 09:15:18 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ matthuszagh ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|