13 buildPythonPackage rec {
14 pname = "smartypants";
20 src = fetchFromGitHub {
22 repo = "smartypants.py";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-V1rV1B8jVADkS0NhnDkoVz8xxkqrsIHb1mP9m5Z94QI=";
29 # https://github.com/leohemsted/smartypants.py/pull/21
30 name = "smartypants-3.12-compat.patch";
31 url = "https://github.com/leohemsted/smartypants.py/commit/ea46bf36343044a7a61ba3acce4a7f188d986ec5.patch";
32 hash = "sha256-9lsiiZKFFKHLy7j3y9ff4gt01szY+2AHpWPAKQgKwZg=";
36 build-system = [ setuptools ];
45 patchShebangs smartypants
49 description = "Python with the SmartyPants";
50 homepage = "https://github.com/leohemsted/smartypants.py";
51 changelog = "https://github.com/leohemsted/smartypants.py/blob/v${version}/CHANGES.rst";
52 license = licenses.bsd3;
53 maintainers = with maintainers; [ dotlambda ];
54 mainProgram = "smartypants";