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