python3.pkgs.mistune: write derivation for mistune=2.0.0a4

This version is required for md2gemini program and is incompatible with
mistune=0.8.4
This commit is contained in:
Dmitry Bogatov 2021-03-27 00:00:00 +00:00 committed by Sandro Jäckel
parent 22fcc95daa
commit b233405aac
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
3 changed files with 30 additions and 20 deletions

View file

@ -0,0 +1,18 @@
{ lib, buildPythonPackage, fetchPypi, nose, version, sha256 }:
buildPythonPackage rec {
inherit version;
pname = "mistune";
src = fetchPypi {
inherit pname version sha256;
};
buildInputs = [ nose ];
meta = with lib; {
description = "The fastest markdown parser in pure Python";
homepage = "https://github.com/lepture/mistune";
license = licenses.bsd3;
};
}

View file

@ -1,23 +1,11 @@
{ lib self: rec {
, buildPythonPackage mistune_0_8 = self.callPackage ./common.nix {
, fetchPypi version = "0.8.4";
, nose
}:
buildPythonPackage rec {
pname = "mistune";
version = "0.8.4";
src = fetchPypi {
inherit pname version;
sha256 = "59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e"; sha256 = "59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e";
}; };
mistune_2_0 = self.callPackage ./common.nix {
buildInputs = [ nose ]; version = "2.0.0a4";
sha256 = "0i6cblmjl58kdmaa21xm0l1ls0kvjpfy45sf73fw3ws6305f628k";
meta = with lib; {
description = "The fastest markdown parser in pure Python";
homepage = "https://github.com/lepture/mistune";
license = licenses.bsd3;
}; };
mistune = mistune_0_8;
} }

View file

@ -4020,7 +4020,11 @@ in {
mistletoe = callPackage ../development/python-modules/mistletoe { }; mistletoe = callPackage ../development/python-modules/mistletoe { };
mistune = callPackage ../development/python-modules/mistune { }; inherit (import ../development/python-modules/mistune self)
mistune
mistune_0_8
mistune_2_0
;
mitmproxy = callPackage ../development/python-modules/mitmproxy { }; mitmproxy = callPackage ../development/python-modules/mitmproxy { };