1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, flit-core
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "affine";
11 version = "2.4.0";
12
13 disabled = pythonOlder "3.7";
14
15 format = "pyproject";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-ok2BjWqDbBMZdtIvjCe408oy0K9kwdjSnet7r6TaHuo=";
20 };
21
22 nativeBuildInputs = [
23 flit-core
24 ];
25
26 nativeCheckInputs = [
27 pytestCheckHook
28 ];
29
30 meta = with lib; {
31 changelog = "https://github.com/rasterio/affine/blob/${version}/CHANGES.txt";
32 description = "Matrices describing affine transformation of the plane";
33 license = licenses.bsd3;
34 homepage = "https://github.com/rasterio/affine";
35 maintainers = with maintainers; [ mredaelli ];
36 };
37
38}