python311Packages.pika-pool: modernize

This commit is contained in:
Peder Bergebakken Sundt 2024-08-12 02:32:28 +02:00
parent 12ebc22f04
commit 47487997b8

View File

@ -2,27 +2,28 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pika,
}:
buildPythonPackage rec {
pname = "pika-pool";
version = "0.1.3";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "f3985888cc2788cdbd293a68a8b5702a9c955db6f7b8b551aeac91e7f32da397";
};
postPatch = ''
substituteInPlace setup.py --replace "pika >=0.9,<0.11" "pika"
'';
pythonRelaxDeps = [ "pika" ];
build-system = [ setuptools ];
# Tests require database connections
doCheck = false;
propagatedBuildInputs = [ pika ];
dependencies = [ pika ];
meta = with lib; {
homepage = "https://github.com/bninja/pika-pool";
license = licenses.bsdOriginal;