blob: 0e295edc48cf8b86a32137599d1306ea6edfa64e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
hatchling,
}:
buildPythonPackage rec {
pname = "rendercv-fonts";
version = "0.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "rendercv";
repo = "rendercv-fonts";
tag = "v${version}";
hash = "sha256-rwMiDoa/93FY3DFDxzR3sPyB8tCJzOnNbMZq8mBcx7M=";
};
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 ];
};
}
|