Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 41 lines 742 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, flit-core 6, requests 7, tomli 8}: 9 10buildPythonPackage rec { 11 pname = "wn"; 12 version = "0.9.2"; 13 format = "pyproject"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-TghCKPKLxRTpvojmZi8tPGmU/D2W+weZl64PArAwDCE="; 18 }; 19 20 nativeBuildInputs = [ flit-core ]; 21 22 propagatedBuildInputs = [ 23 requests 24 tomli 25 ]; 26 27 checkInputs = [ pytestCheckHook ]; 28 29 preCheck = '' 30 export HOME=$(mktemp -d) 31 ''; 32 33 pythonImportsCheck = [ "wn" ]; 34 35 meta = with lib; { 36 description = "A modern, interlingual wordnet interface for Python"; 37 homepage = "https://github.com/goodmami/wn"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ zendo ]; 40 }; 41}