depot/third_party/nixpkgs/pkgs/development/python-modules/pubnub/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

58 lines
1,012 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, cbor2
, fetchFromGitHub
, pycryptodomex
, pytestCheckHook
, pytest-vcr
, pytest-asyncio
, requests
, pythonOlder
}:
buildPythonPackage rec {
pname = "pubnub";
version = "7.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = "python";
rev = "refs/tags/${version}";
hash = "sha256-+uW6fsYsn/3PGK4wTQLKcoq+NFNI8SjJ9cL6Q3Fh2uQ=";
};
propagatedBuildInputs = [
aiohttp
cbor2
pycryptodomex
requests
];
checkInputs = [
pytest-asyncio
pytest-vcr
pytestCheckHook
];
disabledTestPaths = [
# Tests require network access
"tests/integrational"
"tests/manual"
"tests/functional/push"
];
pythonImportsCheck = [
"pubnub"
];
meta = with lib; {
description = "Python-based APIs for PubNub";
homepage = "https://github.com/pubnub/python";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}