From 6b0956d6617bb6bff686e9c6ec74cc3903199a5f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 8 Jun 2023 19:40:50 +0200 Subject: [PATCH] python311Packages.fontmath: remove pytest-runner - add changelog to meta - switch to pytestCheckHook - disable on unsupported Python releases --- .../python-modules/fontmath/default.nix | 35 +++++++++++++------ 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/fontmath/default.nix b/pkgs/development/python-modules/fontmath/default.nix index bb5799cff1a9..81e70c51fee3 100644 --- a/pkgs/development/python-modules/fontmath/default.nix +++ b/pkgs/development/python-modules/fontmath/default.nix @@ -1,28 +1,43 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 -, fonttools, setuptools-scm -, pytest, pytest-runner +{ lib +, buildPythonPackage +, fetchPypi +, fonttools +, setuptools-scm +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { - pname = "fontMath"; + pname = "fontmath"; version = "0.9.3"; - disabled = isPy27; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { - inherit pname version; + pname = "fontMath"; + inherit version; hash = "sha256-alOHy3/rEFlY2y9c7tyHhRPMNb83FeJiCQ8FV74MGxw="; extension = "zip"; }; - nativeBuildInputs = [ setuptools-scm ]; + nativeBuildInputs = [ + setuptools-scm + ]; - propagatedBuildInputs = [ fonttools ]; - nativeCheckInputs = [ pytest pytest-runner ]; + propagatedBuildInputs = [ + fonttools + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; meta = with lib; { description = "A collection of objects that implement fast font, glyph, etc. math"; homepage = "https://github.com/robotools/fontMath/"; + changelog = "https://github.com/robotools/fontMath/releases/tag/${version}"; license = licenses.mit; - maintainers = [ maintainers.sternenseemann ]; + maintainers = with maintainers; [ sternenseemann ]; }; }