7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
42 lines
907 B
Nix
42 lines
907 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
typing-extensions,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "emoji";
|
|
version = "2.13.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "carpedm20";
|
|
repo = "emoji";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-FTQTbp5Ud3CyqkAiGvY8hBOKnvFR29CgZPbz4eZp/ik=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ typing-extensions ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [ "test_emojize_name_only" ];
|
|
|
|
pythonImportsCheck = [ "emoji" ];
|
|
|
|
meta = with lib; {
|
|
description = "Emoji for Python";
|
|
homepage = "https://github.com/carpedm20/emoji/";
|
|
changelog = "https://github.com/carpedm20/emoji/blob/v${version}/CHANGES.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ joachifm ];
|
|
};
|
|
}
|