mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
python311Packages.pika-pool: modernize
This commit is contained in:
parent
12ebc22f04
commit
47487997b8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user