1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-27 19:46:40 +03:00
nixpkgs/pkgs/development/python-modules/pubnub/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1,003 B
Nix
Raw Normal View History

2021-01-16 18:49:21 +01:00
{ lib
, aiohttp
, buildPythonPackage
, cbor2
, fetchFromGitHub
, pycryptodomex
, pytestCheckHook
, pytest-vcr
, pytest-asyncio
, requests
2022-01-25 23:40:24 +01:00
, pythonOlder
2021-01-16 18:49:21 +01:00
}:
buildPythonPackage rec {
pname = "pubnub";
version = "6.1.0";
2022-01-25 23:40:24 +01:00
format = "setuptools";
disabled = pythonOlder "3.7";
2021-01-16 18:49:21 +01:00
src = fetchFromGitHub {
owner = pname;
repo = "python";
rev = "v${version}";
hash = "sha256-rAeZxCaSY9tgoMk7l+mlqqiZfD2yIGoywITC0Y2z7oI=";
2021-01-16 18:49:21 +01:00
};
propagatedBuildInputs = [
2021-04-08 01:14:19 +02:00
aiohttp
2021-01-16 18:49:21 +01:00
cbor2
pycryptodomex
requests
];
checkInputs = [
pytest-asyncio
pytest-vcr
2022-01-25 23:40:24 +01:00
pytestCheckHook
2021-01-16 18:49:21 +01:00
];
2021-04-08 01:14:19 +02:00
disabledTestPaths = [
2022-01-25 23:40:24 +01:00
# Tests require network access
2021-04-08 01:14:19 +02:00
"tests/integrational"
2022-01-25 23:40:24 +01:00
"tests/manual"
"tests/functional/push"
2021-01-16 18:49:21 +01:00
];
2022-01-25 23:40:24 +01:00
pythonImportsCheck = [
"pubnub"
];
2021-01-16 18:49:21 +01:00
meta = with lib; {
description = "Python-based APIs for PubNub";
homepage = "https://github.com/pubnub/python";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}