python312Packages.semaphore-bot: modernize

This commit is contained in:
Peder Bergebakken Sundt 2024-08-24 18:50:27 +02:00
parent 1373e907d5
commit 9a435661ae

View File

@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
python-dateutil,
attrs,
anyio,
@ -10,18 +11,22 @@
buildPythonPackage rec {
pname = "semaphore-bot";
version = "0.17.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit version pname;
hash = "sha256-3zb6+HdOB6+YrVRcmIHsokFKUOlFmKCoVNllvM+aOXQ=";
};
postPatch = ''
substituteInPlace setup.py --replace "anyio>=3.5.0,<=3.6.2" "anyio"
'';
pythonRelaxDeps = [
"anyio"
"attrs"
"python-dateutil"
];
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
anyio
attrs
python-dateutil