nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 marisa-trie,
6 setuptools-scm,
7}:
8
9buildPythonPackage rec {
10 pname = "language-data";
11 version = "1.4.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "georgkrause";
16 repo = "language_data";
17 tag = "v${version}";
18 hash = "sha256-cWjeb2toGrnNSsK566e18NgWhv6YdQrKEzFPilmBdoA=";
19 };
20
21 build-system = [ setuptools-scm ];
22
23 dependencies = [ marisa-trie ];
24
25 pythonImportsCheck = [ "language_data" ];
26
27 # No unittests
28 doCheck = false;
29
30 meta = {
31 description = "Supplement module for langcodes";
32 homepage = "https://github.com/georgkrause/language_data";
33 changelog = "https://github.com/georgkrause/language_data/releases/tag/${src.tag}";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}