2020-10-07 09:15:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cython
|
|
|
|
, openems
|
|
|
|
, csxcad
|
|
|
|
, numpy
|
|
|
|
, matplotlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-csxcad";
|
|
|
|
version = "unstable-2020-02-18";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thliebig";
|
|
|
|
repo = "CSXCAD";
|
|
|
|
rev = "ef6e40931dbd80e0959f37c8e9614c437bf7e518";
|
|
|
|
sha256 = "072s765jyzpdq8qqysdy0dld17m6sr9zfcs0ip2zk8c4imxaysnb";
|
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/python";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
openems
|
|
|
|
csxcad
|
|
|
|
numpy
|
|
|
|
matplotlib
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +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;
|
|
|
|
};
|
|
|
|
}
|