depot/third_party/nixpkgs/pkgs/development/python-modules/wn/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

48 lines
846 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, flit-core
, requests
, tomli
}:
buildPythonPackage rec {
pname = "wn";
version = "0.9.4";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-n03hFoGMAqLu57gw52tY2jkE8uuLFAbwTZ63sHG2168=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
requests
tomli
];
nativeCheckInputs = [
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";
changelog = "https://github.com/goodmami/wn/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ zendo ];
};
}