11 buildPythonPackage rec {
12 pname = "mdformat-nix-alejandra";
16 disabled = pythonOlder "3.7";
18 src = fetchFromGitHub {
19 owner = "aldoborrero";
20 repo = "mdformat-nix-alejandra";
21 rev = "refs/tags/${version}";
22 hash = "sha256-jUXApGsxCA+pRm4m4ZiHWlxmVkqCPx3A46oQdtyKz5g=";
26 substituteInPlace mdformat_nix_alejandra/__init__.py \
27 --replace-fail '"alejandra"' '"${lib.getExe alejandra}"'
34 propagatedBuildInputs = [
38 pythonImportsCheck = [
39 "mdformat_nix_alejandra"
47 description = "Mdformat plugin format Nix code blocks with alejandra";
48 homepage = "https://github.com/aldoborrero/mdformat-nix-alejandra";
49 license = licenses.mit;
50 maintainers = with maintainers; [ aldoborrero ];