Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 python3Packages, 4 fetchPypi, 5 qt5, 6}: 7 8python3Packages.buildPythonApplication rec { 9 pname = "graph-cli"; 10 version = "0.1.19"; 11 format = "pyproject"; 12 13 src = fetchPypi { 14 inherit version; 15 pname = "graph_cli"; 16 hash = "sha256-AOfUgeVgcTtuf5IuLYy1zFTBCjWZxu0OiZzUVXDIaSc="; 17 }; 18 19 nativeBuildInputs = [ qt5.wrapQtAppsHook ]; 20 21 dontWrapQtApps = true; 22 23 preFixup = '' 24 makeWrapperArgs+=("''${qtWrapperArgs[@]}") 25 ''; 26 27 build-system = with python3Packages; [ 28 setuptools 29 ]; 30 31 dependencies = with python3Packages; [ 32 numpy 33 pandas 34 (matplotlib.override { enableQt = true; }) 35 ]; 36 37 # does not contain tests despite reference in Makefile 38 doCheck = false; 39 pythonImportsCheck = [ "graph_cli" ]; 40 41 meta = with lib; { 42 description = "CLI to create graphs from CSV files"; 43 homepage = "https://github.com/mcastorina/graph-cli/"; 44 license = with licenses; [ gpl3Only ]; 45 maintainers = with maintainers; [ leungbk ]; 46 mainProgram = "graph"; 47 }; 48}