From a2357a978fd598d3357fb688ca12941e825ce2ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 17 Mar 2023 11:52:51 -0700 Subject: [PATCH] python310Packages.affine: fix build --- .../python-modules/affine/default.nix | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/affine/default.nix b/pkgs/development/python-modules/affine/default.nix index d474caa938de..4f121cbdbf94 100644 --- a/pkgs/development/python-modules/affine/default.nix +++ b/pkgs/development/python-modules/affine/default.nix @@ -1,21 +1,37 @@ -{ buildPythonPackage, pytest, lib, fetchPypi }: +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, flit-core +, pytestCheckHook +}: buildPythonPackage rec { pname = "affine"; version = "2.4.0"; + disabled = pythonOlder "3.7"; + + format = "pyproject"; + src = fetchPypi { inherit pname version; hash = "sha256-ok2BjWqDbBMZdtIvjCe408oy0K9kwdjSnet7r6TaHuo="; }; - nativeCheckInputs = [ pytest ]; - checkPhase = "py.test"; + nativeBuildInputs = [ + flit-core + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; meta = with lib; { + changelog = "https://github.com/rasterio/affine/blob/${version}/CHANGES.txt"; description = "Matrices describing affine transformation of the plane"; license = licenses.bsd3; - homepage = "https://github.com/sgillies/affine"; + homepage = "https://github.com/rasterio/affine"; maintainers = with maintainers; [ mredaelli ]; };