Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, python3 3, fetchFromGitHub 4, makeDesktopItem 5, copyDesktopItems 6}: 7 8python3.pkgs.buildPythonApplication rec { 9 pname = "opcua-client-gui"; 10 version = "0.8.4"; 11 12 src = fetchFromGitHub { 13 owner = "FreeOpcUa"; 14 repo = pname; 15 rev = version; 16 hash = "sha256-0BH1Txr3z4a7iFcsfnovmBUreXMvIX2zpZa8QivQVx8="; 17 }; 18 19 propagatedBuildInputs = with python3.pkgs; [ 20 pyqt5 21 asyncua 22 opcua-widgets 23 numpy 24 pyqtgraph 25 ]; 26 27 #This test uses a deprecated libarby, when updating the package check if the test was updated as well 28 doCheck = false; 29 30 desktopItems = [ 31 (makeDesktopItem { 32 name = "opcua-client"; 33 exec = "opcua-client"; 34 comment = "OPC UA Client"; 35 type = "Application"; 36 #no icon because the app dosn't have one 37 desktopName = "opcua-client"; 38 terminal = false; 39 categories = [ "Utility" ]; 40 }) 41 ]; 42 43 meta = with lib; { 44 description = "OPC UA GUI Client"; 45 homepage = "https://github.com/FreeOpcUa/opcua-client-gui"; 46 platforms = platforms.linux; 47 license = licenses.gpl3Only; 48 maintainers = with maintainers; [ janik ]; 49 }; 50}