mapproxy: 1.12.0 -> 1.13.0 (#107203)
Switched to using python3, because pyproj fails to build with python2
This commit is contained in:
parent
010e239e5e
commit
0f8e7ab737
|
@ -1,38 +1,15 @@
|
||||||
{ lib
|
{ lib
|
||||||
, pkgs
|
, pkgs
|
||||||
, python
|
, python3
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
py = python.override {
|
with python3.pkgs;
|
||||||
packageOverrides = self: super: {
|
|
||||||
pyproj = super.pyproj.overridePythonAttrs (oldAttrs: rec {
|
|
||||||
version = "1.9.6";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "pyproj4";
|
|
||||||
repo = "pyproj";
|
|
||||||
rev = "v${version}rel";
|
|
||||||
sha256 = "18v4h7jx4mcc0x2xy8y7dfjq9bzsyxs8hdb6v67cabvlz2njziqy";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = with python.pkgs; [ cython ];
|
|
||||||
patches = [ ];
|
|
||||||
checkPhase = ''
|
|
||||||
runHook preCheck
|
|
||||||
pushd unittest # changing directory should ensure we're importing the global pyproj
|
|
||||||
${python.interpreter} test.py && ${python.interpreter} -c "import doctest, pyproj, sys; sys.exit(doctest.testmod(pyproj)[0])"
|
|
||||||
popd
|
|
||||||
runHook postCheck
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
with py.pkgs;
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "MapProxy";
|
pname = "MapProxy";
|
||||||
version = "1.12.0";
|
version = "1.13.0";
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "622e3a7796ef861ba21e42231b49c18d00d75f03eaf3f01a2b7687be7568e2ec";
|
sha256 = "0qi63ap8yi5g2cas33jv4jsmdrl6yv3qp6bh0zxrfpkb704lcng4";
|
||||||
};
|
};
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace mapproxy/util/ext/serving.py --replace "args = [sys.executable] + sys.argv" "args = sys.argv"
|
substituteInPlace mapproxy/util/ext/serving.py --replace "args = [sys.executable] + sys.argv" "args = sys.argv"
|
||||||
|
|
Loading…
Reference in a new issue