nixpkgs/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix
Martin Weinelt 3321e63b12
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/development/python-modules/sphinx-autobuild/default.nix
2024-03-19 04:00:32 +01:00

60 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, build
, hatchling
, tomli
, typing-extensions
}:
buildPythonPackage rec {
pname = "hatch-fancy-pypi-readme";
version = "24.1.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "hatch_fancy_pypi_readme";
inherit version;
hash = "sha256-RN0jnxp3m53PjryUAaYR/X9+PhRXjc8iwmXfr3wVFLg=";
};
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 ];
};
}