b41113241d
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
40 lines
722 B
Nix
40 lines
722 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "emoji";
|
|
version = "2.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "carpedm20";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-mcbrlPD2BHjm4WJQZrymv+2wK2NUjv+qvpD/G7iCjwA=";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_emojize_name_only"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"emoji"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Emoji for Python";
|
|
homepage = "https://github.com/carpedm20/emoji/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ joachifm ];
|
|
};
|
|
}
|