Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
build,
hatchling,
tomli,
typing-extensions,
}:
buildPythonPackage rec {
pname = "hatch-fancy-pypi-readme";
version = "25.1.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "hatch_fancy_pypi_readme";
inherit version;
hash = "sha256-nFjtPf+Q1R9DQUzjcAmtHVsPCP/J/CFpmKBjgPAcAEU=";
};
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [
hatchling
]
++ lib.optionals (pythonOlder "3.11") [ tomli ]
++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
nativeCheckInputs = [
build
pytestCheckHook
];
# Requires network connection
disabledTests = [
"test_build" # Requires internet
"test_invalid_config"
];
pythonImportsCheck = [ "hatch_fancy_pypi_readme" ];
meta = with lib; {
description = "Fancy PyPI READMEs with Hatch";
mainProgram = "hatch-fancy-pypi-readme";
homepage = "https://github.com/hynek/hatch-fancy-pypi-readme";
license = licenses.mit;
maintainers = with maintainers; [ tjni ];
};
}