Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchPypi, python, geos_3_11, pytestCheckHook, cython, numpy}:
buildPythonPackage rec { pname = "pygeos"; version = "0.14"; format = "setuptools";
src = fetchPypi { inherit pname version; hash = "sha256-MPvBf2SEQgC4UTO4hfz7ZVQbh3lTH270+P5GfT+6diM="; };
nativeBuildInputs = [ geos_3_11 # for geos-config cython ];
propagatedBuildInputs = [ numpy ];
# The cythonized extensions are required to exist in the pygeos/ directory # for the package to function. Therefore override of buildPhase was # necessary. buildPhase = '' ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace ${python.pythonOnBuildForHost.interpreter} setup.py bdist_wheel '';
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pygeos" ];
meta = with lib; { description = "Wraps GEOS geometry functions in numpy ufuncs"; homepage = "https://github.com/pygeos/pygeos"; changelog = "https://github.com/pygeos/pygeos/blob/${version}/CHANGELOG.rst"; license = licenses.bsd3; maintainers = teams.geospatial.members; };}