2021-02-28 09:10:51 +00:00
|
|
|
{ lib, buildPythonPackage, isPy27, fetchPypi, pythonOlder
|
2021-01-30 22:15:18 +00:00
|
|
|
, importlib-metadata }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "exdown";
|
2021-04-05 04:04:01 +01:00
|
|
|
version = "0.8.6";
|
2021-01-30 22:15:18 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2021-02-28 09:10:51 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2021-01-30 22:15:18 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-05 04:04:01 +01:00
|
|
|
sha256 = "sha256-BCn+rkMxQSw/gO+dpzgpYSOqEiooWFzSh7LUYIFr6wE=";
|
2021-01-30 22:15:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "exdown" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Extract code blocks from markdown";
|
|
|
|
homepage = "https://github.com/nschloe/exdown";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|