2019-08-08 02:58:41 +01:00
|
|
|
{ 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
|
2020-03-19 01:33:28 +00:00
|
|
|
spyder_3
|
2019-08-08 02:58:41 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|