Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 56 lines 1.0 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7 8python3Packages.buildPythonApplication rec { 9 pname = "wsrepl"; 10 version = "0.2.0"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "doyensec"; 15 repo = "wsrepl"; 16 tag = "v${version}"; 17 hash = "sha256-Y96p39TjpErGsR5vFS0NxEF/2Tnr2Zk7ULDgNXaXx9o="; 18 }; 19 20 pythonRelaxDeps = [ 21 "rich" 22 "textual" 23 ]; 24 25 build-system = with python3Packages; [ 26 poetry-core 27 ]; 28 29 dependencies = with python3Packages; [ 30 pygments 31 pyperclip 32 rich 33 textual 34 websocket-client 35 ]; 36 37 # Project has no tests 38 doCheck = false; 39 40 pythonImportsCheck = [ 41 "wsrepl" 42 ]; 43 44 passthru = { 45 updateScript = nix-update-script { }; 46 }; 47 48 meta = { 49 description = "WebSocket REPL"; 50 homepage = "https://github.com/doyensec/wsrepl"; 51 changelog = "https://github.com/doyensec/wsrepl/releases/tag/v${version}"; 52 license = lib.licenses.mit; 53 maintainers = with lib.maintainers; [ fab ]; 54 mainProgram = "wsrepl"; 55 }; 56}