depot/third_party/nixpkgs/pkgs/development/python-modules/emoji/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

41 lines
810 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "emoji";
version = "2.8.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "carpedm20";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-fnVY4KwiqvSVYijlDckLq6qDrBJj/rJGMwaQ1mMygek=";
};
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 ];
};
}