Skip to content

Commit c47e7f2

Browse files
committed
python312Packages.meinheld: refactor
1 parent 8d0d701 commit c47e7f2

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

pkgs/development/python-modules/meinheld/default.nix

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,38 @@
44
pythonAtLeast,
55
fetchPypi,
66
buildPythonPackage,
7+
setuptools,
78
greenlet,
89
}:
910

1011
buildPythonPackage rec {
1112
pname = "meinheld";
1213
version = "1.0.2";
13-
format = "setuptools";
14+
pyproject = true;
1415

1516
disabled = pythonAtLeast "3.13";
1617

1718
src = fetchPypi {
1819
inherit pname version;
19-
sha256 = "008c76937ac2117cc69e032dc69cea9f85fc605de9bac1417f447c41c16a56d6";
20+
hash = "sha256-AIx2k3rCEXzGngMtxpzqn4X8YF3pusFBf0R8QcFqVtY=";
2021
};
2122

22-
patchPhase = ''
23-
# Allow greenlet-1.0.0.
24-
# See https://github.com/mopemope/meinheld/pull/123
25-
substituteInPlace setup.py --replace "greenlet>=0.4.5,<0.5" "greenlet>=0.4.5"
26-
'';
23+
pythonRelaxDeps = [ "greenlet" ];
2724

2825
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=implicit-function-declaration";
2926

30-
propagatedBuildInputs = [ greenlet ];
27+
build-system = [ setuptools ];
28+
29+
dependencies = [ greenlet ];
3130

3231
# No tests
3332
doCheck = false;
3433

3534
pythonImportsCheck = [ "meinheld" ];
3635

37-
meta = with lib; {
36+
meta = {
3837
description = "High performance asynchronous Python WSGI Web Server";
3938
homepage = "https://meinheld.org/";
40-
license = licenses.bsd3;
39+
license = lib.licenses.bsd3;
4140
};
4241
}

0 commit comments

Comments
 (0)