nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (809B)


      1 { lib, stdenv, python3Packages, fetchFromGitHub, lru-dict }:
      2 
      3 python3Packages.buildPythonApplication rec {
      4   pname = "wikitextprocessor";
      5   version = "0.4.95";
      6 
      7   src = fetchFromGitHub {
      8     owner = "tatuylonen";
      9     repo = pname;
     10     rev = "v${version}";
     11     hash = "sha256-YLlgjMGIifymdQfsZKnf3aRsMIyA35X/sQSqNj5t1TM=";
     12   };
     13 
     14   propagatedBuildInputs = with python3Packages; [ lupa dateparser lru-dict ];
     15 
     16   checkInputs = with python3Packages; [ pytestCheckHook ];
     17 
     18   disabledTests = lib.optionals stdenv.isDarwin [
     19     "test_long_twothread"
     20     "test_expr29"
     21   ];
     22 
     23   meta = with lib; {
     24     description = "Parser and expander for Wikipedia, Wiktionary etc. dump files, with Lua execution support";
     25     inherit (src.meta) homepage;
     26     license = licenses.mit;
     27     maintainers = [ maintainers.sikmir ];
     28   };
     29 }