python311Packages.pika: fix build, refactor

This commit is contained in:
Martin Weinelt
2023-09-27 15:34:48 +02:00
parent d5de3e286e
commit 9789f6dd22
@@ -1,11 +1,19 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
# dependencies
, gevent
, nose2
, mock
, twisted
, tornado
# tests
, nose2
, mock
}:
buildPythonPackage rec {
@@ -20,9 +28,20 @@ buildPythonPackage rec {
hash = "sha256-60Z+y3YXazUghfnOy4e7HzM18iju5m5OEt4I3Wg6ty4=";
};
propagatedBuildInputs = [ gevent tornado twisted ];
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [ nose2 mock ];
propagatedBuildInputs = [
gevent
tornado
twisted
];
nativeCheckInputs = [
nose2
mock
];
postPatch = ''
# don't stop at first test failure
@@ -45,7 +64,9 @@ buildPythonPackage rec {
'';
meta = with lib; {
changelog = "https://github.com/pika/pika/releases/tag/${version}";
description = "Pure-Python implementation of the AMQP 0-9-1 protocol";
downloadPage = "https://github.com/pika/pika";
homepage = "https://pika.readthedocs.org";
license = licenses.bsd3;
maintainers = with maintainers; [ ];