google-compute-engine: fix incorrect usage of buildPythonApplication
This commit is contained in:
parent
540199893d
commit
7244c20621
@ -1,6 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, buildPythonApplication
|
, buildPythonPackage
|
||||||
, bash
|
, bash
|
||||||
, bashInteractive
|
, bashInteractive
|
||||||
, systemd
|
, systemd
|
||||||
@ -10,7 +10,7 @@
|
|||||||
, distro
|
, distro
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-compute-engine";
|
pname = "google-compute-engine";
|
||||||
version = "20190124";
|
version = "20190124";
|
||||||
namePrefix = "";
|
namePrefix = "";
|
||||||
@ -25,7 +25,6 @@ buildPythonApplication rec {
|
|||||||
buildInputs = [ bash ];
|
buildInputs = [ bash ];
|
||||||
propagatedBuildInputs = [ boto setuptools distro ];
|
propagatedBuildInputs = [ boto setuptools distro ];
|
||||||
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
for file in $(find google_compute_engine -type f); do
|
for file in $(find google_compute_engine -type f); do
|
||||||
substituteInPlace "$file" \
|
substituteInPlace "$file" \
|
||||||
@ -53,7 +52,11 @@ buildPythonApplication rec {
|
|||||||
patchShebangs $out/bin/*
|
patchShebangs $out/bin/*
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false;
|
checkPhase = ''
|
||||||
|
# this package has its own test suite, but they assume the ability to
|
||||||
|
# access resources like /sys/class/net causing them to fail in the sandbox
|
||||||
|
python -c 'import google_compute_engine'
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Google Compute Engine tools and services";
|
description = "Google Compute Engine tools and services";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user