diff options
author | Charles Strahan <charles@cstrahan.com> | 2016-12-28 00:19:51 -0500 |
---|---|---|
committer | Charles Strahan <charles@cstrahan.com> | 2016-12-29 20:09:46 -0500 |
commit | 7ebcada02028e5ce8199cc123fda6aa1aba72e64 (patch) | |
tree | fc4a4c2c31aeddf0625593ee5be48caa30741d4f /pkgs/top-level | |
parent | da70d3da0f11b22eac77756b39b349215e06b2e3 (diff) | |
download | nixlib-7ebcada02028e5ce8199cc123fda6aa1aba72e64.tar nixlib-7ebcada02028e5ce8199cc123fda6aa1aba72e64.tar.gz nixlib-7ebcada02028e5ce8199cc123fda6aa1aba72e64.tar.bz2 nixlib-7ebcada02028e5ce8199cc123fda6aa1aba72e64.tar.lz nixlib-7ebcada02028e5ce8199cc123fda6aa1aba72e64.tar.xz nixlib-7ebcada02028e5ce8199cc123fda6aa1aba72e64.tar.zst nixlib-7ebcada02028e5ce8199cc123fda6aa1aba72e64.zip |
mesos: 1.0.1 -> 1.1.0
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/python-packages.nix | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7ca61ccbf4df..66af0cd36e76 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -19146,18 +19146,35 @@ in { ''; preConfigure = optionalString (versionAtLeast protobuf.version "2.6.0") '' - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp - PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2 + export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp + export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2 ''; - checkPhase = if versionAtLeast protobuf.version "2.6.0" then '' + preBuild = optionalString (versionAtLeast protobuf.version "2.6.0") '' + ${python}/bin/${python.executable} setup.py build_ext --cpp_implementation + ''; + + checkPhase = '' + runHook preCheck + '' + (if versionAtLeast protobuf.version "2.6.0" then '' ${python.executable} setup.py google_test --cpp_implementation + echo "sanity checking the C extension . . ." + echo "import google.protobuf.descriptor" | ${python.executable} '' else '' ${python.executable} setup.py test + '') + '' + runHook postCheck ''; installFlags = optional (versionAtLeast protobuf.version "2.6.0") "--install-option='--cpp_implementation'"; + # the _message.so isn't installed, so we'll do that manually. + # if someone can figure out a less hacky way to get the _message.so to + # install, please do replace this. + postInstall = optionalString (versionAtLeast protobuf.version "2.6.0") '' + cp -v $(find build -name "_message*") $out/${python.sitePackages}/google/protobuf/pyext + ''; + doCheck = true; meta = { |