nixpkgs/pkgs/development/python-modules/pubnub/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

60 lines
1.1 KiB
Nix

{ lib
, aiohttp
, buildPythonPackage
, cbor2
, fetchFromGitHub
, pycryptodomex
, pytestCheckHook
, pytest-vcr
, pytest-asyncio
, requests
, pythonOlder
}:
buildPythonPackage rec {
pname = "pubnub";
version = "7.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = "python";
rev = "refs/tags/${version}";
hash = "sha256-+g/VBxv0XfqqwTEKtgBAy7Pfakll00JXMFBS2q3pHn8=";
};
propagatedBuildInputs = [
aiohttp
cbor2
pycryptodomex
requests
];
nativeCheckInputs = [
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";
changelog = "https://github.com/pubnub/python/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}