From 62ca1c2dab3ebec9dad25492f7274ea262fdbce0 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Mon, 23 Oct 2017 14:54:17 +0200 Subject: mistune: 0.7.1 -> 0.7.4, own file --- .../development/python-modules/mistune/default.nix | 24 ++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 18 +--------------- 2 files changed, 25 insertions(+), 17 deletions(-) create mode 100644 pkgs/development/python-modules/mistune/default.nix diff --git a/pkgs/development/python-modules/mistune/default.nix b/pkgs/development/python-modules/mistune/default.nix new file mode 100644 index 00000000000..14aef5b00d1 --- /dev/null +++ b/pkgs/development/python-modules/mistune/default.nix @@ -0,0 +1,24 @@ +{ lib +, buildPythonPackage +, fetchPypi +, nose +}: + +buildPythonPackage rec { + pname = "mistune"; + version = "0.7.4"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "0byj9jg9ly7karf5sb1aqcw7avaim9sxl8ws7yw7p1fibjgsy5w5"; + }; + + buildInputs = [ nose ]; + + meta = with lib; { + description = "The fastest markdown parser in pure Python"; + homepage = https://github.com/lepture/mistune; + license = licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 80bb80586dc..9653bb42a23 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11875,23 +11875,7 @@ in { }; }; - mistune = buildPythonPackage rec { - version = "0.7.1"; - name = "mistune-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/m/mistune/${name}.tar.gz"; - sha256 = "6076dedf768348927d991f4371e5a799c6a0158b16091df08ee85ee231d929a7"; - }; - - buildInputs = with self; [nose]; - - meta = { - description = "The fastest markdown parser in pure Python"; - homepage = https://github.com/lepture/mistune; - license = licenses.bsd3; - }; - }; + mistune = callPackage ../development/python-modules/mistune { }; brotlipy = buildPythonPackage rec { name = "brotlipy-${version}"; -- cgit 1.4.1