package.nix (1018B)
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 ] 33 ++ lib.optionals stdenv.isDarwin [ 34 "test_long_twothread" 35 "test_expr29" 36 ]; 37 38 doCheck = false; 39 40 meta = { 41 description = "Parser and expander for Wikipedia, Wiktionary etc. dump files, with Lua execution support"; 42 homepage = "https://github.com/tatuylonen/wikitextprocessor"; 43 license = lib.licenses.mit; 44 maintainers = [ lib.maintainers.sikmir ]; 45 }; 46 }
