mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{ lib
|
|
, mkDerivationWith
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
mkDerivationWith python3Packages.buildPythonApplication rec {
|
|
pname = "cq-editor";
|
|
version = "0.1RC2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CadQuery";
|
|
repo = "CQ-editor";
|
|
rev = version;
|
|
sha256 = "0zima4pmn34s8b2axxwy6qd1f1r5ki34byq4x3rrd7n3g0hagxz5";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
cadquery
|
|
Logbook
|
|
pyqt5
|
|
pyparsing
|
|
pyqtgraph
|
|
spyder_3
|
|
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 ];
|
|
};
|
|
|
|
}
|