mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
39 lines
715 B
Nix
39 lines
715 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPyPy
|
|
, docutils
|
|
, pygments
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "2.0.1";
|
|
pname = "smartypants";
|
|
disabled = isPyPy;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leohemsted";
|
|
repo = "smartypants.py";
|
|
rev = "v${version}";
|
|
sha256 = "00p1gnb9pzb3svdq3c5b9b332gsp50wrqqa39gj00m133zadanjp";
|
|
};
|
|
|
|
checkInputs = [
|
|
docutils
|
|
pygments
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
patchShebangs smartypants
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python with the SmartyPants";
|
|
homepage = "https://github.com/leohemsted/smartypants.py";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|