diff --git a/pkgs/development/python-modules/area/default.nix b/pkgs/development/python-modules/area/default.nix new file mode 100644 index 000000000000..37d7369dbeee --- /dev/null +++ b/pkgs/development/python-modules/area/default.nix @@ -0,0 +1,20 @@ +{ lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "area"; + version = "1.1.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "18k5hwmlxhajlq306zxndsglb11vv8vd4vpmwx8dpvfxd1kbksya"; + }; + + # tests not working on the package from pypi + doCheck = false; + + meta = with lib; { + 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 = licenses.bsd2; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e9a896d7de93..15bec3b2b4ab 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1596,6 +1596,8 @@ in { argcomplete = callPackage ../development/python-modules/argcomplete { }; + area = callPackage ../development/python-modules/area { }; + arxiv2bib = callPackage ../development/python-modules/arxiv2bib { }; chai = callPackage ../development/python-modules/chai { };