python311Packages.magic-wormhole-transit-relay: add setuptools as dependency
pkg_resources from setuptools is referenced at runtime. Use meta.broken instead of disabled in order to make magic-wormhole usable with Python 3.12.
This commit is contained in:
@@ -16,17 +16,16 @@ buildPythonPackage rec {
|
|||||||
version = "0.2.1";
|
version = "0.2.1";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-y0gBtGiQ6v+XKG4OP+xi0dUv/jF9FACDtjNqH7To+l4=";
|
hash = "sha256-y0gBtGiQ6v+XKG4OP+xi0dUv/jF9FACDtjNqH7To+l4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
autobahn
|
autobahn
|
||||||
|
setuptools # pkg_resources is referenced at runtime
|
||||||
twisted
|
twisted
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -38,11 +37,15 @@ buildPythonPackage rec {
|
|||||||
twisted
|
twisted
|
||||||
];
|
];
|
||||||
|
|
||||||
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Transit Relay server for Magic-Wormhole";
|
description = "Transit Relay server for Magic-Wormhole";
|
||||||
homepage = "https://github.com/magic-wormhole/magic-wormhole-transit-relay";
|
homepage = "https://github.com/magic-wormhole/magic-wormhole-transit-relay";
|
||||||
changelog = "https://github.com/magic-wormhole/magic-wormhole-transit-relay/blob/${version}/NEWS.md";
|
changelog = "https://github.com/magic-wormhole/magic-wormhole-transit-relay/blob/${version}/NEWS.md";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = [ lib.maintainers.mjoerg ];
|
maintainers = [ lib.maintainers.mjoerg ];
|
||||||
|
# Python 3.12 support: https://github.com/magic-wormhole/magic-wormhole-transit-relay/issues/35
|
||||||
|
broken = pythonOlder "3.7" || pythonAtLeast "3.12";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user