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