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