python3Packages.area: modernize

This commit is contained in:
Harinn
2026-06-04 19:51:39 +07:00
parent 960a4c4d39
commit c166b2855b
@@ -5,14 +5,16 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "area";
version = "1.1.1";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit pname version;
sha256 = "18k5hwmlxhajlq306zxndsglb11vv8vd4vpmwx8dpvfxd1kbksya";
inherit (finalAttrs) pname version;
hash = "sha256-yuu5Zmjd7dtQ5/Vu0jbaO4RFn262fwMGplLBTiuHZaI=";
};
build-system = [ setuptools ];
@@ -20,9 +22,11 @@ buildPythonPackage rec {
# 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;
};
}
})