From b0a8a175e57d45ead90903e6218ec68ae482be91 Mon Sep 17 00:00:00 2001 From: Matt Huszagh Date: Sun, 20 Oct 2019 18:03:49 -0700 Subject: [PATCH] pythonPackages.python-csxcad: init at unstable-2020-02-18 --- .../python-modules/python-csxcad/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/python-csxcad/default.nix diff --git a/pkgs/development/python-modules/python-csxcad/default.nix b/pkgs/development/python-modules/python-csxcad/default.nix new file mode 100644 index 000000000000..885208e0e61c --- /dev/null +++ b/pkgs/development/python-modules/python-csxcad/default.nix @@ -0,0 +1,44 @@ +{ 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"; + }; + + sourceRoot = "source/python"; + + nativeBuildInputs = [ + cython + ]; + + propagatedBuildInputs = [ + openems + csxcad + numpy + matplotlib + ]; + + setupPyBuildFlags = "-I${openems}/include -L${openems}/lib -R${openems}/lib"; + + meta = with lib; { + description = "Python interface to CSXCAD"; + homepage = http://openems.de/index.php/Main_Page.html; + license = licenses.gpl3; + maintainers = with maintainers; [ matthuszagh ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e1ae539fb6f8..4928fdd7c16e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4498,6 +4498,8 @@ in { pkuseg = callPackage ../development/python-modules/pkuseg { }; + python-csxcad = callPackage ../development/python-modules/python-csxcad { }; + pkutils = callPackage ../development/python-modules/pkutils { }; plac = callPackage ../development/python-modules/plac { };