Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Oct 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions 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;
Expand All @@ -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";
Expand Down