Files
nixpkgs/pkgs/development/python-modules/rendercv-fonts/default.nix
2025-08-02 14:52:31 +02:00

46 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
hatchling,
}:
buildPythonPackage rec {
pname = "rendercv-fonts";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "rendercv";
repo = "rendercv-fonts";
tag = "v${version}";
hash = "sha256-fQ9iNN3hRCrhut+1F6q3dJEWoKUQyPol0/SyTPUPK1c=";
};
build-system = [ hatchling ];
# pythonRelaxDeps seems not taking effect for the build-system dependencies
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'hatchling==1.26.3' 'hatchling' \
'';
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "rendercv_fonts" ];
meta = {
description = "Python package with some fonts for the rendercv package";
homepage = "https://github.com/rendercv/rendercv-fonts";
changelog = "https://github.com/rendercv/rendercv-fonts/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ theobori ];
};
}