nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 hatchling,
7}:
8
9buildPythonPackage rec {
10 pname = "rendercv-fonts";
11 version = "0.5.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "rendercv";
16 repo = "rendercv-fonts";
17 tag = "v${version}";
18 hash = "sha256-rwMiDoa/93FY3DFDxzR3sPyB8tCJzOnNbMZq8mBcx7M=";
19 };
20
21 build-system = [ hatchling ];
22
23 # pythonRelaxDeps seems not taking effect for the build-system dependencies
24 postPatch = ''
25 substituteInPlace pyproject.toml \
26 --replace-fail 'hatchling==1.26.3' 'hatchling' \
27 '';
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [ "rendercv_fonts" ];
34
35 meta = {
36 description = "Python package with some fonts for the rendercv package";
37 homepage = "https://github.com/rendercv/rendercv-fonts";
38 changelog = "https://github.com/rendercv/rendercv-fonts/releases/tag/v${version}";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ theobori ];
41 };
42}