diff --git a/pkgs/development/python-modules/smartypants/default.nix b/pkgs/development/python-modules/smartypants/default.nix new file mode 100644 index 00000000000..3c4735013ab --- /dev/null +++ b/pkgs/development/python-modules/smartypants/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchhg +, isPyPy +}: + +buildPythonPackage rec { + version = "1.8.6"; + pname = "smartypants"; + disabled = isPyPy; + + src = fetchhg { + url = "https://bitbucket.org/livibetter/smartypants.py"; + rev = "v${version}"; + sha256 = "1cmzz44d2hm6y8jj2xcq1wfr26760gi7iq92ha8xbhb1axzd7nq6"; + }; + + meta = with stdenv.lib; { + description = "Python with the SmartyPants"; + homepage = "https://bitbucket.org/livibetter/smartypants.py"; + license = licenses.bsd3; + maintainers = with maintainers; [ garbas ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2c66822170a..0332127a7a0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4439,23 +4439,7 @@ in { typogrify = callPackage ../development/python-modules/typogrify { }; - smartypants = buildPythonPackage rec { - version = "1.8.6"; - name = "smartypants-${version}"; - src = pkgs.fetchhg { - url = "https://bitbucket.org/livibetter/smartypants.py"; - rev = "v${version}"; - sha256 = "1cmzz44d2hm6y8jj2xcq1wfr26760gi7iq92ha8xbhb1axzd7nq6"; - }; - disabled = isPyPy; - buildInputs = with self; [ ]; #docutils pygments ]; - meta = { - description = "Python with the SmartyPants"; - homepage = "https://bitbucket.org/livibetter/smartypants.py"; - license = licenses.bsd3; - maintainers = with maintainers; [ garbas ]; - }; - }; + smartypants = callPackage ../development/python-modules/smartypants { }; pypeg2 = buildPythonPackage rec { version = "2.15.2";