Merge pull request #292193 from atorres1985-contrib/duden
duden: 0.18.0 -> 0.19.1
This commit is contained in:
commit
b4aad32403
@ -1,40 +0,0 @@
|
||||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonPackage rec {
|
||||
pname = "duden";
|
||||
version = "0.18.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "radomirbosak";
|
||||
repo = "duden";
|
||||
rev = version;
|
||||
hash = "sha256-ZrarN09Znw4m6YiZxD7q7dTJ49WjmHDobLnOt8JCwvc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3.pkgs.poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
beautifulsoup4
|
||||
crayons
|
||||
pyxdg
|
||||
pyyaml
|
||||
requests
|
||||
setuptools
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "duden" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "CLI for http://duden.de dictionary written in Python";
|
||||
homepage = "https://github.com/radomirbosak/duden";
|
||||
changelog = "https://github.com/radomirbosak/duden/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
56
pkgs/development/python-modules/duden/default.nix
Normal file
56
pkgs/development/python-modules/duden/default.nix
Normal file
@ -0,0 +1,56 @@
|
||||
{ lib
|
||||
, beautifulsoup4
|
||||
, buildPythonPackage
|
||||
, crayons
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pyxdg
|
||||
, pyyaml
|
||||
, requests
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
let
|
||||
finalAttrs = {
|
||||
pname = "duden";
|
||||
version = "0.19.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "radomirbosak";
|
||||
repo = "duden";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-c6IItrjFVbsdYg3sDrExcxv7aRcKhd/M5hiZD+wBZ2Y=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
crayons
|
||||
pyxdg
|
||||
pyyaml
|
||||
requests
|
||||
setuptools
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "duden" ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/radomirbosak/duden";
|
||||
changelog = "https://github.com/radomirbosak/duden/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
||||
description = "CLI for https://duden.de dictionary written in Python";
|
||||
longDescription = ''
|
||||
duden is a CLI-based program and python module, which can provide
|
||||
various information about given german word. The provided data are
|
||||
parsed from german dictionary duden.de.
|
||||
'';
|
||||
license = with lib.licenses; [ mit ];
|
||||
mainProgram = "duden";
|
||||
maintainers = with lib.maintainers; [ AndersonTorres linuxissuper ];
|
||||
};
|
||||
};
|
||||
in
|
||||
buildPythonPackage finalAttrs
|
@ -41710,7 +41710,7 @@ with pkgs;
|
||||
|
||||
udict = callPackage ../applications/misc/udict { };
|
||||
|
||||
duden = callPackage ../applications/misc/duden { };
|
||||
duden = python3Packages.toPythonApplication python3Packages.duden;
|
||||
|
||||
zf = callPackage ../tools/misc/zf { };
|
||||
|
||||
|
@ -3502,6 +3502,8 @@ self: super: with self; {
|
||||
|
||||
duct-py = callPackage ../development/python-modules/duct-py { };
|
||||
|
||||
duden = callPackage ../development/python-modules/duden { };
|
||||
|
||||
duecredit = callPackage ../development/python-modules/duecredit { };
|
||||
|
||||
duet = callPackage ../development/python-modules/duet { };
|
||||
|
Loading…
Reference in New Issue
Block a user