python3Packages.markdown: explicit checkPhase
This commit is contained in:
parent
c58b97674b
commit
45fccbfe3b
1 changed files with 13 additions and 12 deletions
|
@ -1,36 +1,37 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, nose
|
||||
, pyyaml
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, importlib-metadata
|
||||
, isPy3k
|
||||
, pyyaml
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Markdown";
|
||||
version = "3.3.4";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "31b5b491868dcc87d6c24b7e3d19a0d730d59d3e46f4eea6430a321bed387a49";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
setuptools
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
disabled = !isPy3k;
|
||||
checkInputs = [ pyyaml ];
|
||||
|
||||
checkInputs = [ nose pyyaml ];
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "A Python implementation of John Gruber's Markdown with Extension support";
|
||||
homepage = "https://github.com/Python-Markdown/markdown";
|
||||
license = lib.licenses.bsd3;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue