nixpkgs/pkgs/development/python-modules/wn/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
840 B
Nix
Raw Normal View History

2022-10-05 11:24:48 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, flit-core
, requests
, tomli
}:
buildPythonPackage rec {
pname = "wn";
2022-12-31 08:45:52 +00:00
version = "0.9.3";
2022-10-05 11:24:48 +00:00
format = "pyproject";
src = fetchPypi {
inherit pname version;
2022-12-31 08:45:52 +00:00
hash = "sha256-rqrzGUiF1XQZzE6xicwJ7CJsI7SvWlFT4nDCrhtQUWg=";
2022-10-05 11:24:48 +00:00
};
nativeBuildInputs = [
flit-core
];
2022-10-05 11:24:48 +00:00
propagatedBuildInputs = [
requests
tomli
];
checkInputs = [
pytestCheckHook
];
2022-10-05 11:24:48 +00:00
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [
"wn"
];
2022-10-05 11:24:48 +00:00
meta = with lib; {
description = "A modern, interlingual wordnet interface for Python";
homepage = "https://github.com/goodmami/wn";
changelog = "https://github.com/goodmami/wn/blob/v${version}/CHANGELOG.md";
2022-10-05 11:24:48 +00:00
license = licenses.mit;
maintainers = with maintainers; [ zendo ];
};
}