python3Packages.magic-wormhole-transit-relay: use fetchFromGitHub
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
setuptools,
|
||||
autobahn,
|
||||
@@ -15,9 +15,11 @@ buildPythonPackage (finalAttrs: {
|
||||
version = "0.4.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-kS2DXaIbESZsdxEdybXlgAJj/AuY8KF5liJn30GBnow=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "magic-wormhole";
|
||||
repo = "magic-wormhole-transit-relay";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-AKLmiOlxNDd8rxNeWTDTPxtSoEyTGZ5PMLgyVxcIHcg=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -61,7 +63,7 @@ buildPythonPackage (finalAttrs: {
|
||||
meta = {
|
||||
description = "Transit Relay server for Magic-Wormhole";
|
||||
homepage = "https://github.com/magic-wormhole/magic-wormhole-transit-relay";
|
||||
changelog = "https://github.com/magic-wormhole/magic-wormhole-transit-relay/blob/refs/tags/${finalAttrs.version}/NEWS.md";
|
||||
changelog = "https://github.com/magic-wormhole/magic-wormhole-transit-relay/blob/${finalAttrs.src.rev}/NEWS.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.mjoerg ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user