1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, marisa-trie 5, poetry-core 6, pythonOlder 7, setuptools 8}: 9 10buildPythonPackage rec { 11 pname = "language-data"; 12 version = "1.0.1"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "rspeer"; 19 repo = "language_data"; 20 rev = "v${version}"; 21 sha256 = "51TUVHXPHG6ofbnxI6+o5lrtr+QCIpGKu+OjDK3l7Mc="; 22 }; 23 24 nativeBuildInputs = [ 25 poetry-core 26 setuptools 27 ]; 28 29 propagatedBuildInputs = [ 30 marisa-trie 31 ]; 32 33 # Module has no tests 34 doCheck = false; 35 36 pythonImportsCheck = [ 37 "language_data" 38 ]; 39 40 meta = with lib; { 41 description = "Supplement module for langcodes"; 42 homepage = "https://github.com/rspeer/language_data"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}