python3Packages.wn: init at 0.9.2

This commit is contained in:
zendo 2022-10-05 19:24:48 +08:00
parent e21955bc1c
commit 195f48cb78
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, flit-core
, requests
, tomli
}:
buildPythonPackage rec {
pname = "wn";
version = "0.9.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-TghCKPKLxRTpvojmZi8tPGmU/D2W+weZl64PArAwDCE=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
requests
tomli
];
checkInputs = [ pytestCheckHook ];
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ "wn" ];
meta = with lib; {
description = "A modern, interlingual wordnet interface for Python";
homepage = "https://github.com/goodmami/wn";
license = licenses.mit;
maintainers = with maintainers; [ zendo ];
};
}

View file

@ -11844,6 +11844,8 @@ in {
wled = callPackage ../development/python-modules/wled { };
wn = callPackage ../development/python-modules/wn { };
woob = callPackage ../development/python-modules/woob { };
woodblock = callPackage ../development/python-modules/woodblock { };