blob: a9cef023304838ac90a7b71cb64f28f00318e115 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
isPyPy,
setuptools,
docutils,
pygments,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "smartypants";
version = "2.0.2";
pyproject = true;
disabled = isPyPy;
src = fetchFromGitHub {
owner = "leohemsted";
repo = "smartypants.py";
tag = "v${version}";
hash = "sha256-jSGiT36Rr0P6eEWZIHtMj4go3KGDRaF2spLxLNruDec=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
docutils
pygments
pytestCheckHook
];
preCheck = ''
patchShebangs smartypants
'';
meta = {
description = "Translate plain ASCII quotation marks and other characters into “smart” typographic HTML entities";
homepage = "https://github.com/leohemsted/smartypants.py";
changelog = "https://github.com/leohemsted/smartypants.py/blob/v${version}/CHANGES.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ dotlambda ];
mainProgram = "smartypants";
};
}
|