2019-08-08 01:58:41 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivationWith
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
2020-10-08 11:59:26 +00:00
|
|
|
, wrapQtAppsHook
|
2019-08-08 01:58:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivationWith python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "cq-editor";
|
2020-06-06 04:56:35 +00:00
|
|
|
version = "0.1.1";
|
2019-08-08 01:58:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CadQuery";
|
|
|
|
repo = "CQ-editor";
|
|
|
|
rev = version;
|
2020-06-06 04:56:35 +00:00
|
|
|
sha256 = "1970izjaa60r5cg9i35rzz9lk5c5d8q1vw1rh2skvfbf63z1hnzv";
|
2019-08-08 01:58:41 +00:00
|
|
|
};
|
|
|
|
|
2021-06-22 22:46:58 +00:00
|
|
|
patches = [
|
|
|
|
./spyder4.patch
|
|
|
|
];
|
|
|
|
|
2019-08-08 01:58:41 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
cadquery
|
|
|
|
Logbook
|
|
|
|
pyqt5
|
|
|
|
pyparsing
|
|
|
|
pyqtgraph
|
2021-06-22 22:46:58 +00:00
|
|
|
spyder
|
2022-04-12 19:59:32 +00:00
|
|
|
path
|
2019-08-08 01:58:41 +00:00
|
|
|
qtconsole
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2020-10-08 11:59:26 +00:00
|
|
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
2019-08-08 01:58:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
pytest
|
|
|
|
pytest-xvfb
|
|
|
|
pytest-mock
|
2021-07-20 20:42:24 +00:00
|
|
|
pytest-cov
|
2019-08-08 01:58:41 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|