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