summary refs log tree commit diff
path: root/pkgs/applications/graphics/cq-editor
diff options
context:
space:
mode:
authorMarcus Boyd <mwb@geosol.com.au>2019-08-08 11:28:41 +0930
committerMarcus Boyd <mwb@geosol.com.au>2019-11-30 16:30:17 +1030
commitf033c3470fcfccb4cad462fd555e1a2849373eb9 (patch)
tree6c7669c14bcb4bcfb8e813ceda0d54c6fd21d178 /pkgs/applications/graphics/cq-editor
parentc027ec5488161d1334fec799767d942d59c82fd0 (diff)
downloadnixpkgs-f033c3470fcfccb4cad462fd555e1a2849373eb9.tar
nixpkgs-f033c3470fcfccb4cad462fd555e1a2849373eb9.tar.gz
nixpkgs-f033c3470fcfccb4cad462fd555e1a2849373eb9.tar.bz2
nixpkgs-f033c3470fcfccb4cad462fd555e1a2849373eb9.tar.lz
nixpkgs-f033c3470fcfccb4cad462fd555e1a2849373eb9.tar.xz
nixpkgs-f033c3470fcfccb4cad462fd555e1a2849373eb9.tar.zst
nixpkgs-f033c3470fcfccb4cad462fd555e1a2849373eb9.zip
cq-editor: init at 0.1RC1
Diffstat (limited to 'pkgs/applications/graphics/cq-editor')
-rw-r--r--pkgs/applications/graphics/cq-editor/default.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/cq-editor/default.nix b/pkgs/applications/graphics/cq-editor/default.nix
new file mode 100644
index 00000000000..32d079d85ff
--- /dev/null
+++ b/pkgs/applications/graphics/cq-editor/default.nix
@@ -0,0 +1,57 @@
+{ lib
+, mkDerivationWith
+, python3Packages
+, fetchFromGitHub
+}:
+
+mkDerivationWith python3Packages.buildPythonApplication rec {
+  pname = "cq-editor";
+  version = "0.1RC1";
+
+  src = fetchFromGitHub {
+    owner = "CadQuery";
+    repo = "CQ-editor";
+    rev = version;
+    sha256 = "0iwcpnj15s64k16948sakvkn1lb4mqwrhmbxk3r03bczs0z33zax";
+  };
+
+  propagatedBuildInputs = with python3Packages; [
+    cadquery
+    Logbook
+    pyqt5
+    pyparsing
+    pyqtgraph
+    spyder
+    pathpy
+    qtconsole
+    requests
+  ];
+
+  postFixup = ''
+    wrapQtApp "$out/bin/cq-editor"
+  '';
+
+  checkInputs = with python3Packages; [
+    pytest
+    pytest-xvfb
+    pytest-mock
+    pytestcov
+    pytest-repeat
+    pytest-qt
+  ];
+
+  checkPhase = ''
+    pytest --no-xvfb
+  '';
+
+  # requires X server
+  doCheck = false;
+
+  meta = with lib; {
+    description = "CadQuery GUI editor based on PyQT";
+    homepage = "https://github.com/CadQuery/CQ-editor";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ costrouc marcus7070 ];
+  };
+
+}