nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 pytestCheckHook, 7 8 setuptools, 9 10 # for testing 11 numpy, 12 importlib-resources, 13 14 # requirements 15 editdistpy, 16}: 17 18buildPythonPackage rec { 19 pname = "symspellpy"; 20 version = "6.9.0"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "mammothb"; 25 repo = "symspellpy"; 26 tag = "v${version}"; 27 hash = "sha256-isxANYSiwN8pQ7/XfMtO7cyoGdTyrXYOZ6C5rDJsJIs="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ editdistpy ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 numpy 37 importlib-resources 38 ]; 39 40 pythonImportsCheck = [ 41 "symspellpy" 42 "symspellpy.symspellpy" 43 ]; 44 45 meta = { 46 description = "Python port of SymSpell v6.7.1, which provides much higher speed and lower memory consumption"; 47 homepage = "https://github.com/mammothb/symspellpy"; 48 changelog = "https://github.com/mammothb/symspellpy/releases/tag/${src.tag}"; 49 license = lib.licenses.mit; 50 maintainers = with lib.maintainers; [ vizid ]; 51 }; 52}