mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, cython
|
|
, geos
|
|
, setuptools
|
|
, numpy
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "shapely";
|
|
version = "2.0.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-EfGxIxpsBCE/sSJsaWjRsbOzaexC0ellUGavh2MYYOo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
geos # for geos-config
|
|
setuptools
|
|
];
|
|
|
|
buildInputs = [
|
|
geos
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
rm -r shapely # prevent import of local shapely
|
|
'';
|
|
|
|
disabledTests = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
|
|
# FIXME(lf-): these logging tests are broken, which is definitely our
|
|
# fault. I've tried figuring out the cause and failed.
|
|
#
|
|
# It is apparently some sandbox or no-sandbox related thing on macOS only
|
|
# though.
|
|
"test_error_handler_exception"
|
|
"test_error_handler"
|
|
"test_info_handler"
|
|
];
|
|
|
|
pythonImportsCheck = [ "shapely" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/shapely/shapely/blob/${version}/CHANGES.txt";
|
|
description = "Manipulation and analysis of geometric objects";
|
|
homepage = "https://github.com/shapely/shapely";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ knedlsepp ];
|
|
};
|
|
}
|