1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00

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