Unverified Commit b47ee350 authored by Théo Bori's avatar Théo Bori
Browse files

python3Packages.rendercv-fonts: init at 0.4.0

parent ca22674f
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -15509,6 +15509,8 @@ self: super: with self; {
  rencode = callPackage ../development/python-modules/rencode { };
  rendercv-fonts = callPackage ../development/python-modules/rendercv-fonts { };
  reno = callPackage ../development/python-modules/reno { };
  renson-endura-delta = callPackage ../development/python-modules/renson-endura-delta { };