python3Packages.pubnub: init at 4.8.0
This commit is contained in:
parent
97b9ca2f16
commit
7c1f97917f
1 changed files with 57 additions and 0 deletions
57
pkgs/development/python-modules/pubnub/default.nix
Normal file
57
pkgs/development/python-modules/pubnub/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, cbor2
|
||||
, fetchFromGitHub
|
||||
, pycryptodomex
|
||||
, pytestCheckHook
|
||||
, pyyaml
|
||||
, pytest-vcr
|
||||
, pytest-asyncio
|
||||
, requests
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pubnub";
|
||||
version = "4.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = "python";
|
||||
rev = "v${version}";
|
||||
sha256 = "16wjal95042kh5fxhvji0rwmw892pacqcnyms520mw15wcwilqir";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cbor2
|
||||
pycryptodomex
|
||||
requests
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aiohttp
|
||||
pycryptodomex
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
pytest-vcr
|
||||
|
||||
];
|
||||
|
||||
# Some tests don't pass with recent releases of tornado/twisted
|
||||
pytestFlagsArray = [
|
||||
"--ignore tests/integrational"
|
||||
"--ignore tests/manual/asyncio"
|
||||
"--ignore tests/manual/tornado/test_reconnections.py"
|
||||
];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue