2021-08-25 08:27:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, importlib-metadata
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "exdown";
|
2021-08-25 08:27:29 +00:00
|
|
|
version = "0.9.0";
|
2021-02-05 17:12:51 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-25 08:27:29 +00:00
|
|
|
sha256 = "sha256-r0SCigkUpOiba4MDf80+dLjOjjruVNILh/raWfvjXA0=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
|
|
|
|
2021-08-25 08:27:29 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
pythonImportsCheck = [ "exdown" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Extract code blocks from markdown";
|
|
|
|
homepage = "https://github.com/nschloe/exdown";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|