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