default.nix (948B)
1 { 2 lib, 3 stdenv, 4 python3Packages, 5 fetchFromGitHub, 6 }: 7 8 python3Packages.buildPythonPackage { 9 pname = "wikitextprocessor"; 10 version = "0.4.96"; 11 12 src = fetchFromGitHub { 13 owner = "tatuylonen"; 14 repo = "wikitextprocessor"; 15 rev = "3fa4cb9418e05d1d462a53d629848196b7ade492"; 16 hash = "sha256-cjhKgzqsPwVO2/fwC62IDilMhz6fg6qQrnm0xLQ3KPk="; 17 }; 18 19 dependencies = with python3Packages; [ 20 lupa 21 dateparser 22 lru-dict 23 ]; 24 25 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 26 27 disabledTests = 28 [ "test_string_format2" ] 29 ++ lib.optionals stdenv.isDarwin [ 30 "test_long_twothread" 31 "test_expr29" 32 ]; 33 34 doCheck = false; 35 36 meta = { 37 description = "Parser and expander for Wikipedia, Wiktionary etc. dump files, with Lua execution support"; 38 homepage = "https://github.com/tatuylonen/wikitextprocessor"; 39 license = lib.licenses.mit; 40 maintainers = [ lib.maintainers.sikmir ]; 41 }; 42 }