Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 1.1 kB view raw
1{ 2 python3, 3 fetchFromGitHub, 4 fetchpatch, 5 lib, 6}: 7 8python3.pkgs.buildPythonApplication { 9 pname = "dnd-tools"; 10 version = "0-unstable-2021-02-18"; 11 format = "pyproject"; 12 13 src = fetchFromGitHub { 14 owner = "savagezen"; 15 repo = "dnd-tools"; 16 rev = "baefb9e4b4b8279be89ec63d256dde9704dee078"; 17 sha256 = "1rils3gzbfmwvgy51ah77qihwwbvx50q82lkc1kwcb55b3yinnmj"; 18 }; 19 20 # gives warning every time unless patched, see https://github.com/savagezen/dnd-tools/pull/20 21 patches = [ 22 (fetchpatch { 23 url = "https://github.com/savagezen/dnd-tools/commit/0443f3a232056ad67cfb09eb3eadcb6344659198.patch"; 24 sha256 = "00k8rsz2aj4sfag6l313kxbphcb5bjxb6z3aw66h26cpgm4kysp0"; 25 }) 26 ]; 27 28 build-system = with python3.pkgs; [ 29 setuptools 30 ]; 31 32 meta = with lib; { 33 homepage = "https://github.com/savagezen/dnd-tools"; 34 description = "Set of interactive command line tools for Dungeons and Dragons 5th Edition"; 35 mainProgram = "dnd-tools"; 36 license = licenses.agpl3Only; 37 maintainers = [ maintainers.urlordjames ]; 38 }; 39}