mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-15 01:33:50 +00:00
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
attrs,
|
|
twisted,
|
|
autobahn,
|
|
treq,
|
|
nixosTests,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "magic-wormhole-mailbox-server";
|
|
version = "0.7.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "magic-wormhole";
|
|
repo = "magic-wormhole-mailbox-server";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-OkmYm/pehd4NlkIoqGzKaTBXkpFRwbiMHeZNezd8NvU=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
attrs
|
|
autobahn
|
|
twisted
|
|
]
|
|
++ autobahn.optional-dependencies.twisted
|
|
++ twisted.optional-dependencies.tls;
|
|
|
|
pythonImportsCheck = [ "wormhole_mailbox_server" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
treq
|
|
];
|
|
|
|
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
# these tests fail in Darwin's sandbox
|
|
"src/wormhole_mailbox_server/test/test_web.py"
|
|
];
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) magic-wormhole-mailbox-server;
|
|
};
|
|
|
|
meta = {
|
|
description = "Securely transfer data between computers";
|
|
homepage = "https://github.com/magic-wormhole/magic-wormhole-mailbox-server";
|
|
changelog = "https://github.com/magic-wormhole/magic-wormhole-mailbox-server/blob/${finalAttrs.src.rev}/NEWS.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.mjoerg ];
|
|
};
|
|
})
|