1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonRelaxDepsHook, 6 poetry-core, 7 fonttools, 8 openstep-plist, 9 ufolib2, 10 glyphslib, 11 bump2version, 12}: 13 14buildPythonPackage rec { 15 pname = "bumpfontversion"; 16 version = "0.4.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "simoncozens"; 21 repo = "bumpfontversion"; 22 tag = "v${version}"; 23 hash = "sha256-qcKZGv/KeeSRBq4SdnuZlurp0CUs40iEQjw9/1LltUg="; 24 }; 25 26 postPatch = '' 27 substituteInPlace pyproject.toml \ 28 --replace-fail 'poetry>=' 'poetry-core>=' \ 29 --replace-fail 'poetry.masonry.api' 'poetry.core.masonry.api' 30 ''; 31 32 nativeBuildInputs = [ pythonRelaxDepsHook ]; 33 34 pythonRelaxDeps = [ "glyphslib" ]; 35 36 build-system = [ poetry-core ]; 37 38 dependencies = [ 39 fonttools 40 openstep-plist 41 ufolib2 42 glyphslib 43 bump2version 44 ]; 45 46 meta = { 47 description = "Version-bump your font sources"; 48 homepage = "https://github.com/simoncozens/bumpfontversion"; 49 license = lib.licenses.asl20; 50 mainProgram = "bumpfontversion"; 51 maintainers = with lib.maintainers; [ jopejoe1 ]; 52 }; 53}