2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-29 13:50:47 -04:00
|
|
|
, buildPythonPackage
|
2021-04-08 05:23:40 -04:00
|
|
|
, fetchFromGitHub
|
2018-10-29 13:50:47 -04:00
|
|
|
, isPyPy
|
2021-04-08 17:53:40 +02:00
|
|
|
, docutils
|
|
|
|
|
, pygments
|
|
|
|
|
, pytestCheckHook
|
2018-10-29 13:50:47 -04:00
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-04-08 17:53:40 +02:00
|
|
|
version = "2.0.1";
|
2018-10-29 13:50:47 -04:00
|
|
|
pname = "smartypants";
|
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
2021-04-08 05:23:40 -04:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "leohemsted";
|
|
|
|
|
repo = "smartypants.py";
|
2018-10-29 13:50:47 -04:00
|
|
|
rev = "v${version}";
|
2021-04-08 17:53:40 +02:00
|
|
|
sha256 = "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp";
|
2018-10-29 13:50:47 -04:00
|
|
|
};
|
|
|
|
|
|
2021-04-08 17:53:40 +02:00
|
|
|
checkInputs = [
|
|
|
|
|
docutils
|
|
|
|
|
pygments
|
|
|
|
|
pytestCheckHook
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
|
patchShebangs smartypants
|
|
|
|
|
'';
|
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-29 13:50:47 -04:00
|
|
|
description = "Python with the SmartyPants";
|
2021-04-08 05:23:40 -04:00
|
|
|
homepage = "https://github.com/leohemsted/smartypants.py";
|
2018-10-29 13:50:47 -04:00
|
|
|
license = licenses.bsd3;
|
2021-04-08 17:53:40 +02:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2018-10-29 13:50:47 -04:00
|
|
|
};
|
|
|
|
|
}
|