75ca762b89
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
26 lines
661 B
Nix
26 lines
661 B
Nix
{ lib, buildPythonPackage, isPy27, fetchPypi, pythonOlder
|
|
, importlib-metadata }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "exdown";
|
|
version = "0.8.5";
|
|
format = "pyproject";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1ly67whyfn74nr0dncarf3xbd96hacvzgjihx4ibckkc4h9z46bj";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|