1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, isPyPy
5, docutils
6, pygments
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 version = "2.0.1";
12 pname = "smartypants";
13 disabled = isPyPy;
14
15 src = fetchFromGitHub {
16 owner = "leohemsted";
17 repo = "smartypants.py";
18 rev = "v${version}";
19 sha256 = "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp";
20 };
21
22 nativeCheckInputs = [
23 docutils
24 pygments
25 pytestCheckHook
26 ];
27
28 preCheck = ''
29 patchShebangs smartypants
30 '';
31
32 meta = with lib; {
33 description = "Python with the SmartyPants";
34 homepage = "https://github.com/leohemsted/smartypants.py";
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ dotlambda ];
37 };
38}