mapproxy: switch from fetchPypi to fetchFromGitHub
This commit is contained in:
parent
ab77074b96
commit
d47fe12b69
@ -1,17 +1,21 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
python3,
|
python3,
|
||||||
fetchPypi,
|
fetchFromGitHub,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with python3.pkgs;
|
with python3.pkgs;
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "mapproxy";
|
pname = "mapproxy";
|
||||||
version = "3.0.1";
|
version = "3.0.1";
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
src = fetchFromGitHub {
|
||||||
hash = "sha256-2So0e5VDWde33bNksdhzdaiOp4XkHcyULeBifV5OtKM=";
|
owner = "mapproxy";
|
||||||
|
repo = "mapproxy";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-74hUJIy1+DaKjUsCgd4+2MdMPGqqDUuHDrhBCFNn8Dk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
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 New Issue
Block a user