mapproxy: switch from fetchPypi to fetchFromGitHub

This commit is contained in:
Nikolay Korotkiy 2024-09-01 21:33:47 +04:00
parent ab77074b96
commit d47fe12b69
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5

View File

@ -1,17 +1,21 @@
{
lib,
python3,
fetchPypi,
fetchFromGitHub,
}:
with python3.pkgs;
buildPythonApplication rec {
pname = "mapproxy";
version = "3.0.1";
src = fetchPypi {
inherit pname version;
hash = "sha256-2So0e5VDWde33bNksdhzdaiOp4XkHcyULeBifV5OtKM=";
src = fetchFromGitHub {
owner = "mapproxy";
repo = "mapproxy";
rev = version;
hash = "sha256-74hUJIy1+DaKjUsCgd4+2MdMPGqqDUuHDrhBCFNn8Dk=";
};
prePatch = ''
substituteInPlace mapproxy/util/ext/serving.py --replace "args = [sys.executable] + sys.argv" "args = sys.argv"
'';