depot/third_party/nixpkgs/pkgs/development/python-modules/emoji/default.nix

41 lines
722 B
Nix
Raw Normal View History

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