depot/third_party/nixpkgs/pkgs/development/python-modules/language-data/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

44 lines
801 B
Nix

{ lib
, buildPythonApplication
, fetchFromGitHub
, marisa-trie
, poetry-core
, pythonOlder
}:
buildPythonApplication rec {
pname = "language-data";
version = "1.0.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "rspeer";
repo = "language_data";
rev = "v${version}";
sha256 = "51TUVHXPHG6ofbnxI6+o5lrtr+QCIpGKu+OjDK3l7Mc=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
marisa-trie
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"language_data"
];
meta = with lib; {
description = "Supplement module for langcodes";
homepage = "https://github.com/rspeer/language_data";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}