From d3cec1c029e0cb439d985da8d8407ff1c8b28662 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 11 Oct 2020 11:24:22 +0100 Subject: [PATCH] python3Packages.proto-plus: enable tests, disable for py2 --- pkgs/development/python-modules/proto-plus/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/proto-plus/default.nix b/pkgs/development/python-modules/proto-plus/default.nix index 6048f393d87e..d542d6f64778 100644 --- a/pkgs/development/python-modules/proto-plus/default.nix +++ b/pkgs/development/python-modules/proto-plus/default.nix @@ -1,12 +1,16 @@ { stdenv , buildPythonPackage , fetchPypi +, isPy3k , protobuf +, google_api_core +, pytestCheckHook }: buildPythonPackage rec { pname = "proto-plus"; version = "1.10.1"; + disabled = !isPy3k; src = fetchPypi { inherit pname version; @@ -15,6 +19,8 @@ buildPythonPackage rec { propagatedBuildInputs = [ protobuf ]; + checkInputs = [ pytestCheckHook google_api_core ]; + meta = with stdenv.lib; { description = "Beautiful, idiomatic protocol buffers in Python"; homepage = "https://github.com/googleapis/proto-plus-python";