Merge pull request #100223 from risicle/ris-proto-plus-tests

python3Packages.proto-plus: enable tests, disable for py2
This commit is contained in:
Robert Scott 2020-10-12 19:28:58 +01:00 committed by GitHub
commit bb7f906bc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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";