forked from mirrors/nixpkgs
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
39 lines
836 B
Nix
39 lines
836 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, importlib-metadata
|
|
, pyyaml
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "markdown";
|
|
version = "3.4.1";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "Markdown";
|
|
inherit version;
|
|
sha256 = "3b809086bb6efad416156e00a0da66fe47618a5d6918dd688f53f40c8e4cfeff";
|
|
};
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
|
|
importlib-metadata
|
|
];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook pyyaml ];
|
|
|
|
pythonImportsCheck = [ "markdown" ];
|
|
|
|
meta = with lib; {
|
|
description = "A Python implementation of John Gruber's Markdown with Extension support";
|
|
homepage = "https://github.com/Python-Markdown/markdown";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|