mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 13:06:32 +01:00
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
marisa-trie,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
language-data,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "langcodes";
|
|
version = "3.5.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QL/zFeAbAdEcKuOSjdT1y9dN04+b2RLBK5o2BsFD9zE=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
language-data
|
|
marisa-trie
|
|
setuptools # pkg_resources import in language_data/util.py
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# AssertionError: assert 'Unknown language [aqk]' == 'Aninka'
|
|
"test_updated_iana"
|
|
# doctest mismatches
|
|
"speaking_population"
|
|
"writing_population"
|
|
"README.md"
|
|
];
|
|
|
|
pythonImportsCheck = [ "langcodes" ];
|
|
|
|
meta = {
|
|
description = "Python toolkit for working with and comparing the standardized codes for languages";
|
|
homepage = "https://github.com/georgkrause/langcodes";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|