blob: f8ce40a77de1660fd23d8c673354e0b803a980e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pythonOlder
, pytestCheckHook
, ujson
}:
buildPythonPackage rec {
pname = "demoji";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bsolomon1124";
repo = "demoji";
rev = "refs/tags/v${version}";
hash = "sha256-ojy4JiM6xvP9J40Z5uFCMUZvZtLZ1le2p/2/NfAUAtk=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace-fail "pytest-runner" ""
'';
build-system = [
setuptools
];
passthru.optional-dependencies = {
ujson = [
ujson
];
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"demoji"
];
meta = with lib; {
description = "Module to find/replace/remove emojis in text strings";
homepage = "https://github.com/bsolomon1124/demoji";
changelog = "https://github.com/bsolomon1124/demoji/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}
|