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
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
version = "1.8.6";
|
|
|
|
|
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}";
|
|
|
|
|
sha256 = "1cmzz44d2hm6y8jj2xcq1wfr26760gi7iq92ha8xbhb1axzd7nq6";
|
2021-04-08 05:23:40 -04:00
|
|
|
# remove this file and the name on the next version update
|
|
|
|
|
extraPostFetch = ''
|
|
|
|
|
cp ${./hgtags} "$out"/.hgtags
|
|
|
|
|
'';
|
|
|
|
|
name = "hg-archive";
|
2018-10-29 13:50:47 -04:00
|
|
|
};
|
|
|
|
|
|
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;
|
2019-07-03 11:27:39 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-29 13:50:47 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|