1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
55 lines
1.0 KiB
Nix
55 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
linkify-it-py,
|
|
markdown-it-py,
|
|
mdformat,
|
|
mdformat-tables,
|
|
mdit-py-plugins,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mdformat-gfm";
|
|
version = "0.3.6";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hukkin";
|
|
repo = "mdformat-gfm";
|
|
tag = version;
|
|
hash = "sha256-c1jJwyTL8IgQnIAJFoPSuJ8VEYgnQ4slZyV0bHlUHLQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
markdown-it-py
|
|
mdformat
|
|
mdformat-tables
|
|
mdit-py-plugins
|
|
linkify-it-py
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
"test_default_style__api"
|
|
"test_default_style__cli"
|
|
];
|
|
|
|
pythonImportsCheck = [ "mdformat_gfm" ];
|
|
|
|
meta = {
|
|
description = "Mdformat plugin for GitHub Flavored Markdown compatibility";
|
|
homepage = "https://github.com/hukkin/mdformat-gfm";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
aldoborrero
|
|
polarmutex
|
|
];
|
|
};
|
|
}
|