python3Packages.proto-plus: enable tests, disable for py2

This commit is contained in:
Robert Scott 2020-10-11 11:24:22 +01:00
parent 30608b8036
commit d3cec1c029

View File

@ -1,12 +1,16 @@
{ stdenv { stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, isPy3k
, protobuf , protobuf
, google_api_core
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "proto-plus"; pname = "proto-plus";
version = "1.10.1"; version = "1.10.1";
disabled = !isPy3k;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -15,6 +19,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ protobuf ]; propagatedBuildInputs = [ protobuf ];
checkInputs = [ pytestCheckHook google_api_core ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Beautiful, idiomatic protocol buffers in Python"; description = "Beautiful, idiomatic protocol buffers in Python";
homepage = "https://github.com/googleapis/proto-plus-python"; homepage = "https://github.com/googleapis/proto-plus-python";