pythonPackages.pyproj: 2.2.2 -> 2.6.0

This commit is contained in:
Lancelot SIX
2020-03-24 22:12:58 +01:00
committed by Jon
parent 4f6fc6dc62
commit 6cd915b21f
2 changed files with 70 additions and 49 deletions

View File

@@ -1,20 +1,22 @@
{ lib, buildPythonPackage, fetchFromGitHub, python, pkgs, pythonOlder, substituteAll
{ lib, buildPythonPackage, fetchFromGitHub, python, pkgs, pythonOlder, isPy27, substituteAll
, aenum
, cython
, pytest
, mock
, numpy
, shapely
}:
buildPythonPackage rec {
pname = "pyproj";
version = "2.2.2";
version = "2.6.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "pyproj4";
repo = "pyproj";
rev = "v${version}rel";
sha256 = "0mb0jczgqh3sma69k7237i38h09gxgmvmddls9hpw4f3131f5ax7";
sha256 = "0fyggkbr3kp8mlq4c0r8sl5ah58bdg2mj4kzql9p3qyrkcdlgixh";
};
# force pyproj to use ${pkgs.proj}
@@ -22,13 +24,14 @@ buildPythonPackage rec {
(substituteAll {
src = ./001.proj.patch;
proj = pkgs.proj;
projdev = pkgs.proj.dev;
})
];
buildInputs = [ cython pkgs.proj ];
propagatedBuildInputs = [
numpy
numpy shapely
] ++ lib.optional (pythonOlder "3.6") aenum;
checkInputs = [ pytest mock ];
@@ -38,6 +41,9 @@ buildPythonPackage rec {
checkPhase = ''
pytest . -k 'not alternative_grid_name \
and not transform_wgs84_to_alaska \
and not transformer_group__unavailable \
and not transform_group__missing_best \
and not datum \
and not repr' \
--ignore=test/test_doctest_wrapper.py \
--ignore=test/test_datadir.py