python3Packages.area: migrate to pyproject (#528216)

This commit is contained in:
Fabian Affolter
2026-06-05 08:33:45 +00:00
committed by GitHub
@@ -2,24 +2,31 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "area";
version = "1.1.1";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit pname version;
sha256 = "18k5hwmlxhajlq306zxndsglb11vv8vd4vpmwx8dpvfxd1kbksya";
inherit (finalAttrs) pname version;
hash = "sha256-yuu5Zmjd7dtQ5/Vu0jbaO4RFn262fwMGplLBTiuHZaI=";
};
build-system = [ setuptools ];
# tests not working on the package from pypi
doCheck = false;
pythonImportsCheck = [ "area" ];
meta = {
description = "Calculate the area inside of any GeoJSON geometry. This is a port of Mapboxs geojson-area for Python";
homepage = "https://github.com/scisco/area";
license = lib.licenses.bsd2;
};
}
})