Unverified Commit 5746fe0a authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

Merge pull request #257437 from paveloom/readmdict

python3Packages.readmdict: init at 0.1.1
parents 08502bb3 a7613559
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub

, poetry-core
, python-lzo
, tkinter

, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "readmdict";
  version = "0.1.1";
  pyproject = true;

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "ffreemt";
    repo = "readmdict";
    rev = "v${version}";
    hash = "sha256-1/f+o2bVscT3EA8XQyS2hWjhimLRzfIBM6u2O7UqwcA=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    python-lzo
    tkinter
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "readmdict"
  ];

  meta = with lib; {
    description = "Read mdx/mdd files (repacking of readmdict from mdict-analysis)";
    homepage = "https://github.com/ffreemt/readmdict";
    license = licenses.mit;
    maintainers = with maintainers; [ paveloom ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -24747,6 +24747,8 @@ with pkgs;
  readline82 = callPackage ../development/libraries/readline/8.2.nix { };
  readmdict = with python3Packages; toPythonApplication readmdict;
  readosm = callPackage ../development/libraries/readosm { };
  recastnavigation = callPackage ../development/libraries/recastnavigation { };
+2 −0
Original line number Diff line number Diff line
@@ -12028,6 +12028,8 @@ self: super: with self; {
  readlike = callPackage ../development/python-modules/readlike { };
  readmdict = callPackage ../development/python-modules/readmdict { };
  readme = callPackage ../development/python-modules/readme { };
  readme_renderer = callPackage ../development/python-modules/readme_renderer { };