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