python310Packages.affine: fix build

This commit is contained in:
Robert Schütz 2023-03-17 11:52:51 -07:00
parent 06a465200e
commit a2357a978f

View file

@ -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 ];
};