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:
parent
30608b8036
commit
d3cec1c029
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue