summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/area/default.nix
blob: b9fbb93227d20f13dc7b5678aa47deb6825366ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
}:

buildPythonPackage (finalAttrs: {
  pname = "area";
  version = "1.1.1";
  pyproject = true;

  __structuredAttrs = true;

  src = fetchPypi {
    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 Mapbox’s geojson-area for Python";
    homepage = "https://github.com/scisco/area";
    license = lib.licenses.bsd2;
  };
})