Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / dnd-tools / default.nix
blob3b0d0ec90e25be841492575ef1cf16bcaf568f43
1 { python3, fetchFromGitHub, fetchpatch, lib }:
3 python3.pkgs.buildPythonApplication rec {
4   pname = "dnd-tools";
5   version = "unstable-2021-02-18";
7   src = fetchFromGitHub {
8     owner = "savagezen";
9     repo = pname;
10     rev = "baefb9e4b4b8279be89ec63d256dde9704dee078";
11     sha256 = "1rils3gzbfmwvgy51ah77qihwwbvx50q82lkc1kwcb55b3yinnmj";
12   };
14   # gives warning every time unless patched, see https://github.com/savagezen/dnd-tools/pull/20
15   patches = [
16     (fetchpatch {
17       url = "https://github.com/savagezen/dnd-tools/commit/0443f3a232056ad67cfb09eb3eadcb6344659198.patch";
18       sha256 = "00k8rsz2aj4sfag6l313kxbphcb5bjxb6z3aw66h26cpgm4kysp0";
19     })
20   ];
22   meta = with lib; {
23     homepage = "https://github.com/savagezen/dnd-tools";
24     description = "A set of interactive command line tools for Dungeons and Dragons 5th Edition";
25     license = licenses.agpl3Only;
26     maintainers = [ maintainers.urlordjames ];
27   };