Files
nixpkgs/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

54 lines
1.0 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 = {
description = "Fancy PyPI READMEs with Hatch";
mainProgram = "hatch-fancy-pypi-readme";
homepage = "https://github.com/hynek/hatch-fancy-pypi-readme";
license = lib.licenses.mit;
};
}