python311Packages.fontmath: remove pytest-runner

- add changelog to meta
- switch to pytestCheckHook
- disable on unsupported Python releases
This commit is contained in:
Fabian Affolter 2023-06-08 19:40:50 +02:00
parent 4c52672699
commit 6b0956d661

View file

@ -1,28 +1,43 @@
{ lib, buildPythonPackage, fetchPypi, isPy27 { lib
, fonttools, setuptools-scm , buildPythonPackage
, pytest, pytest-runner , fetchPypi
, fonttools
, setuptools-scm
, pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "fontMath"; pname = "fontmath";
version = "0.9.3"; version = "0.9.3";
disabled = isPy27; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; pname = "fontMath";
inherit version;
hash = "sha256-alOHy3/rEFlY2y9c7tyHhRPMNb83FeJiCQ8FV74MGxw="; hash = "sha256-alOHy3/rEFlY2y9c7tyHhRPMNb83FeJiCQ8FV74MGxw=";
extension = "zip"; extension = "zip";
}; };
nativeBuildInputs = [ setuptools-scm ]; nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [ fonttools ]; propagatedBuildInputs = [
nativeCheckInputs = [ pytest pytest-runner ]; fonttools
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; { meta = with lib; {
description = "A collection of objects that implement fast font, glyph, etc. math"; description = "A collection of objects that implement fast font, glyph, etc. math";
homepage = "https://github.com/robotools/fontMath/"; homepage = "https://github.com/robotools/fontMath/";
changelog = "https://github.com/robotools/fontMath/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.sternenseemann ]; maintainers = with maintainers; [ sternenseemann ];
}; };
} }