From 9f7c1b9477c8f1e510237bcb40566648628cf776 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 25 Nov 2022 13:09:26 +0100 Subject: [PATCH 1/2] python310Packages.statmake: add changelog to meta --- pkgs/development/python-modules/statmake/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/statmake/default.nix b/pkgs/development/python-modules/statmake/default.nix index 50e93eeac9b6..becfce3cc74f 100644 --- a/pkgs/development/python-modules/statmake/default.nix +++ b/pkgs/development/python-modules/statmake/default.nix @@ -25,7 +25,7 @@ buildPythonPackage rec { owner = "daltonmaag"; repo = pname; rev = "refs/tags/v${version}"; - sha256 = "sha256-BpxjAr65ZQEJ0PSUIPtS78UvJbMG91qkV8py2K/+W2E="; + hash = "sha256-BpxjAr65ZQEJ0PSUIPtS78UvJbMG91qkV8py2K/+W2E="; }; nativeBuildInputs = [ @@ -65,6 +65,7 @@ buildPythonPackage rec { meta = with lib; { description = "Applies STAT information from a Stylespace to a variable font"; homepage = "https://github.com/daltonmaag/statmake"; + changelog = "https://github.com/daltonmaag/statmake/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ jtojnar ]; }; From b574d069b3cf0da6a01a103a4e7554c0193d0810 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 25 Nov 2022 13:14:15 +0100 Subject: [PATCH 2/2] python310Packages.statmake: disable failing test --- .../python-modules/statmake/default.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/statmake/default.nix b/pkgs/development/python-modules/statmake/default.nix index becfce3cc74f..70f7c75de4f9 100644 --- a/pkgs/development/python-modules/statmake/default.nix +++ b/pkgs/development/python-modules/statmake/default.nix @@ -50,18 +50,16 @@ buildPythonPackage rec { ufoLib2 ]; - postPatch = '' - # https://github.com/daltonmaag/statmake/pull/41 - substituteInPlace pyproject.toml \ - --replace 'requires = ["poetry>=1.0.0"]' 'requires = ["poetry-core"]' \ - --replace 'build-backend = "poetry.masonry.api"' 'build-backend = "poetry.core.masonry.api"' \ - --replace 'cattrs = "^1.1"' 'cattrs = ">= 1.1"' - ''; - pythonImportsCheck = [ "statmake" ]; + disabledTests = [ + # Test requires an update as later cattrs is present in Nixpkgs + # https://github.com/daltonmaag/statmake/issues/42 + "test_load_stylespace_broken_range" + ]; + meta = with lib; { description = "Applies STAT information from a Stylespace to a variable font"; homepage = "https://github.com/daltonmaag/statmake";