mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 09:03:42 +00:00
[Backport release-24.11] python312Packages.magic-wormhole-mailbox-server: 0.4.1 -> 0.5.1 (#357210)
This commit is contained in:
commit
e954f3e48e
@ -9,7 +9,7 @@ let
|
|||||||
cfg = config.services.magic-wormhole-mailbox-server;
|
cfg = config.services.magic-wormhole-mailbox-server;
|
||||||
# keep semicolon in dataDir for backward compatibility
|
# keep semicolon in dataDir for backward compatibility
|
||||||
dataDir = "/var/lib/magic-wormhole-mailbox-server;";
|
dataDir = "/var/lib/magic-wormhole-mailbox-server;";
|
||||||
python = pkgs.python311.withPackages (
|
python = pkgs.python3.withPackages (
|
||||||
py: with py; [
|
py: with py; [
|
||||||
magic-wormhole-mailbox-server
|
magic-wormhole-mailbox-server
|
||||||
twisted
|
twisted
|
||||||
|
@ -3,46 +3,31 @@
|
|||||||
stdenv,
|
stdenv,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchPypi,
|
fetchPypi,
|
||||||
fetchpatch,
|
|
||||||
setuptools,
|
setuptools,
|
||||||
six,
|
|
||||||
attrs,
|
attrs,
|
||||||
twisted,
|
twisted,
|
||||||
autobahn,
|
autobahn,
|
||||||
treq,
|
treq,
|
||||||
mock,
|
|
||||||
nixosTests,
|
nixosTests,
|
||||||
pythonOlder,
|
|
||||||
pythonAtLeast,
|
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "magic-wormhole-mailbox-server";
|
pname = "magic-wormhole-mailbox-server";
|
||||||
version = "0.4.1";
|
version = "0.5.1";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-GvEFkpCcqvUZwA5wbqyELF53+NQ1YhX+nGHHsiWKiPs=";
|
hash = "sha256-oAegNnIpMgRldoHb9QIEXW1YF8V/mq4vIibm6hoAjKE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
# Remove the 'U' open mode removed, https://github.com/magic-wormhole/magic-wormhole-mailbox-server/pull/34
|
|
||||||
name = "fix-for-python-3.11.patch";
|
|
||||||
url = "https://github.com/magic-wormhole/magic-wormhole-mailbox-server/commit/4b358859ba80de37c3dc0a5f67ec36909fd48234.patch";
|
|
||||||
hash = "sha256-RzZ5kD+xhmFYusVzAbGE+CODXtJVR1zN2rZ+VGApXiQ=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
build-system = [ setuptools ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
attrs
|
attrs
|
||||||
autobahn
|
autobahn
|
||||||
setuptools # pkg_resources is referenced at runtime
|
setuptools # pkg_resources is referenced at runtime
|
||||||
six
|
|
||||||
twisted
|
twisted
|
||||||
] ++ autobahn.optional-dependencies.twisted ++ twisted.optional-dependencies.tls;
|
] ++ autobahn.optional-dependencies.twisted ++ twisted.optional-dependencies.tls;
|
||||||
|
|
||||||
@ -51,7 +36,6 @@ buildPythonPackage rec {
|
|||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
treq
|
treq
|
||||||
mock
|
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
|
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
@ -69,7 +53,5 @@ buildPythonPackage rec {
|
|||||||
changelog = "https://github.com/magic-wormhole/magic-wormhole-mailbox-server/blob/${version}/NEWS.md";
|
changelog = "https://github.com/magic-wormhole/magic-wormhole-mailbox-server/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-mailbox-server/issues/41
|
|
||||||
broken = pythonOlder "3.7" || pythonAtLeast "3.12";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
# tests
|
# tests
|
||||||
nettools,
|
nettools,
|
||||||
unixtools,
|
unixtools,
|
||||||
mock,
|
|
||||||
magic-wormhole-transit-relay,
|
magic-wormhole-transit-relay,
|
||||||
magic-wormhole-mailbox-server,
|
magic-wormhole-mailbox-server,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
@ -81,16 +80,9 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeCheckInputs =
|
nativeCheckInputs =
|
||||||
# For Python 3.12, remove magic-wormhole-mailbox-server and magic-wormhole-transit-relay from test dependencies,
|
[
|
||||||
# which are not yet supported with this version.
|
magic-wormhole-mailbox-server
|
||||||
lib.optionals
|
magic-wormhole-transit-relay
|
||||||
(!magic-wormhole-mailbox-server.meta.broken && !magic-wormhole-transit-relay.meta.broken)
|
|
||||||
[
|
|
||||||
magic-wormhole-mailbox-server
|
|
||||||
magic-wormhole-transit-relay
|
|
||||||
]
|
|
||||||
++ [
|
|
||||||
mock
|
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
]
|
]
|
||||||
++ optional-dependencies.dilation
|
++ optional-dependencies.dilation
|
||||||
@ -98,20 +90,6 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
disabledTestPaths =
|
|
||||||
# For Python 3.12, remove the tests depending on magic-wormhole-mailbox-server and magic-wormhole-transit-relay,
|
|
||||||
# which are not yet supported with this version.
|
|
||||||
lib.optionals
|
|
||||||
(magic-wormhole-mailbox-server.meta.broken || magic-wormhole-transit-relay.meta.broken)
|
|
||||||
[
|
|
||||||
"src/wormhole/test/dilate/test_full.py"
|
|
||||||
"src/wormhole/test/test_args.py"
|
|
||||||
"src/wormhole/test/test_cli.py"
|
|
||||||
"src/wormhole/test/test_transit.py"
|
|
||||||
"src/wormhole/test/test_wormhole.py"
|
|
||||||
"src/wormhole/test/test_xfer_util.py"
|
|
||||||
];
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm644 docs/wormhole.1 $out/share/man/man1/wormhole.1
|
install -Dm644 docs/wormhole.1 $out/share/man/man1/wormhole.1
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user