nixpkgs/pkgs/development/python-modules/pubnub/default.nix

54 lines
944 B
Nix
Raw Normal View History

2021-01-16 17:49:21 +00:00
{ lib
, aiohttp
, buildPythonPackage
, cbor2
, fetchFromGitHub
, pycryptodomex
, pytestCheckHook
, pytest-vcr
, pytest-asyncio
, requests
, six
}:
buildPythonPackage rec {
pname = "pubnub";
2021-04-07 23:14:19 +00:00
version = "5.1.1";
2021-01-16 17:49:21 +00:00
src = fetchFromGitHub {
owner = pname;
repo = "python";
rev = "v${version}";
2021-04-07 23:14:19 +00:00
sha256 = "sha256-ir8f8A6XuN1ZQIYQbArChLzTlYu4ZKpkoOXQtSLOvKg=";
2021-01-16 17:49:21 +00:00
};
propagatedBuildInputs = [
2021-04-07 23:14:19 +00:00
aiohttp
2021-01-16 17:49:21 +00:00
cbor2
pycryptodomex
requests
six
];
checkInputs = [
pytest-asyncio
pytestCheckHook
pytest-vcr
];
2021-04-07 23:14:19 +00:00
# Some tests don't pass with recent releases of twisted
disabledTestPaths = [
"tests/integrational"
"tests/manual/asyncio"
2021-01-16 17:49:21 +00:00
];
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 ];
};
}