diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-12-24 02:26:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-24 02:26:49 +0100 |
commit | 4efb5ceae5c86a6ece7ab08b3cc0e03153e66a12 (patch) | |
tree | bc1416cc0cb8875d2b87dd624b49ec07378bcf02 /pkgs/development | |
parent | 906157dce040a99166787dd2cfcc6464b68735e0 (diff) | |
parent | 242949ca5f47129aa630a782de2e5f154d7e0b96 (diff) |
Merge pull request #194581 from zendo/wordbook
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/wn/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/wn/default.nix b/pkgs/development/python-modules/wn/default.nix new file mode 100644 index 000000000000..21f0ec0d08c8 --- /dev/null +++ b/pkgs/development/python-modules/wn/default.nix @@ -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 ]; + }; +} |