Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 6 unittestCheckHook, 7 8 setuptools, 9 10 unicodecsv, 11 pyyaml, 12 regex, 13 numpy, 14 editdistance, 15 munkres, 16 levenshtein, 17}: 18 19buildPythonPackage rec { 20 pname = "panphon"; 21 version = "0.22.0"; 22 pyproject = true; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-iSdCZjzeZhxsrkaRYHpg60evmo9g09a9Fwr0I5WWd1A="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 unicodecsv 33 pyyaml 34 regex 35 numpy 36 editdistance 37 munkres 38 levenshtein # need for align_wordlists.py script 39 ]; 40 41 nativeCheckInputs = [ unittestCheckHook ]; 42 43 unittestFlagsArray = [ 44 "-s" 45 "test" 46 ]; 47 48 pythonImportsCheck = [ 49 "panphon" 50 "panphon.segment" 51 "panphon.distance" 52 ]; 53 54 meta = with lib; { 55 description = "Tools for using the International Phonetic Alphabet with phonological features"; 56 homepage = "https://github.com/dmort27/panphon"; 57 license = licenses.mit; 58 maintainers = with maintainers; [ vizid ]; 59 }; 60}