Skip to content

Commit 0f8e7ab

Browse files
authored
mapproxy: 1.12.0 -> 1.13.0 (#107203)
Switched to using python3, because pyproj fails to build with python2
1 parent 010e239 commit 0f8e7ab

1 file changed

Lines changed: 5 additions & 28 deletions

File tree

pkgs/applications/misc/mapproxy/default.nix

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,15 @@
11
{ lib
22
, pkgs
3-
, python
3+
, python3
44
}:
5-
let
6-
py = python.override {
7-
packageOverrides = self: super: {
8-
pyproj = super.pyproj.overridePythonAttrs (oldAttrs: rec {
9-
version = "1.9.6";
10-
src = pkgs.fetchFromGitHub {
11-
owner = "pyproj4";
12-
repo = "pyproj";
13-
rev = "v${version}rel";
14-
sha256 = "18v4h7jx4mcc0x2xy8y7dfjq9bzsyxs8hdb6v67cabvlz2njziqy";
15-
};
16-
nativeBuildInputs = with python.pkgs; [ cython ];
17-
patches = [ ];
18-
checkPhase = ''
19-
runHook preCheck
20-
pushd unittest # changing directory should ensure we're importing the global pyproj
21-
${python.interpreter} test.py && ${python.interpreter} -c "import doctest, pyproj, sys; sys.exit(doctest.testmod(pyproj)[0])"
22-
popd
23-
runHook postCheck
24-
'';
25-
});
26-
};
27-
};
28-
in
29-
with py.pkgs;
5+
6+
with python3.pkgs;
307
buildPythonApplication rec {
318
pname = "MapProxy";
32-
version = "1.12.0";
9+
version = "1.13.0";
3310
src = fetchPypi {
3411
inherit pname version;
35-
sha256 = "622e3a7796ef861ba21e42231b49c18d00d75f03eaf3f01a2b7687be7568e2ec";
12+
sha256 = "0qi63ap8yi5g2cas33jv4jsmdrl6yv3qp6bh0zxrfpkb704lcng4";
3613
};
3714
prePatch = ''
3815
substituteInPlace mapproxy/util/ext/serving.py --replace "args = [sys.executable] + sys.argv" "args = sys.argv"

0 commit comments

Comments
 (0)