Merge pull request #286708 from fabaff/nats-py-bump

python311Packages.nats-py: 2.6.0 -> 2.7.0
This commit is contained in:
Nick Cao 2024-02-06 09:42:55 -05:00 committed by GitHub
commit 5461646fb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,7 @@
, ed25519
, fetchFromGitHub
, nats-server
, nkeys
, pytestCheckHook
, pythonOlder
, setuptools
@ -13,8 +14,8 @@
buildPythonPackage rec {
pname = "nats-py";
version = "2.6.0";
format = "pyproject";
version = "2.7.0";
pyproject = true;
disabled = pythonOlder "3.7";
@ -22,23 +23,29 @@ buildPythonPackage rec {
owner = "nats-io";
repo = "nats.py";
rev = "refs/tags/v${version}";
hash = "sha256-gpQXCihKvuXzCt1WNOd5W7RxxfVAvpaVP6OuHUiAQkw=";
hash = "sha256-spKz0rKTI8hWdO6r8VLtP3G8tS9ANsjYRbinXOARCOQ=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"--cov=nats", "--cov-report=html"' ""
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
ed25519
];
passthru.optional-dependencies = {
aiohttp = [
aiohttp
];
nkeys = [
nkeys
];
# fast_parse = [
# fast-mail-parser
# ];
};
nativeCheckInputs = [
nats-server
pytestCheckHook