nixpkgs/pkgs/applications/graphics/cq-editor/default.nix

58 lines
1,023 B
Nix
Raw Normal View History

2019-08-08 03:58:41 +02:00
{ lib
, mkDerivationWith
, python3Packages
, fetchFromGitHub
}:
mkDerivationWith python3Packages.buildPythonApplication rec {
pname = "cq-editor";
2020-06-06 06:56:35 +02:00
version = "0.1.1";
2019-08-08 03:58:41 +02:00
src = fetchFromGitHub {
owner = "CadQuery";
repo = "CQ-editor";
rev = version;
2020-06-06 06:56:35 +02:00
sha256 = "1970izjaa60r5cg9i35rzz9lk5c5d8q1vw1rh2skvfbf63z1hnzv";
2019-08-08 03:58:41 +02:00
};
propagatedBuildInputs = with python3Packages; [
cadquery
Logbook
pyqt5
pyparsing
pyqtgraph
2020-03-19 02:33:28 +01:00
spyder_3
2019-08-08 03:58:41 +02: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 ];
};
}