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.20.0"; 22 pyproject = true; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-gio52n1NZWeyCK+eJW/Fp827wjvwnMNDFAR4pKa8VcY="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 setuptools # need for pkg_resources 33 unicodecsv 34 pyyaml 35 regex 36 numpy 37 editdistance 38 munkres 39 levenshtein # need for align_wordlists.py script 40 ]; 41 42 nativeCheckInputs = [ unittestCheckHook ]; 43 44 unittestFlagsArray = [ 45 "-s" 46 "test" 47 ]; 48 49 pythonImportsCheck = [ 50 "panphon" 51 "panphon.segment" 52 "panphon.distance" 53 ]; 54 55 meta = with lib; { 56 description = "Tools for using the International Phonetic Alphabet with phonological features"; 57 homepage = "https://github.com/dmort27/panphon"; 58 license = licenses.mit; 59 maintainers = with maintainers; [ vizid ]; 60 }; 61}