Merge pull request #311058 from fabaff/noiseprotocol-bump

python312Packages.noiseprotocol: refactor
This commit is contained in:
Nick Cao 2024-05-12 11:19:02 -04:00 committed by GitHub
commit 84c64f0f25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,18 +1,30 @@
{ lib, buildPythonPackage, fetchFromGitHub, cryptography, pytestCheckHook }:
{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "noiseprotocol";
version = "0.3.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "plizonczyk";
repo = "noiseprotocol";
rev = "v${version}";
sha256 = "1mk0rqpjifdv3v1cjwkdnjbrfmzzjm9f3qqs1r8vii4j2wvhm6am";
rev = "refs/tags/v${version}";
hash = "sha256-VZkKNxeSxLhRDhrj4VKV/1eXl7RtcsnCHru5KC/OYNY=";
};
propagatedBuildInputs = [ cryptography ];
build-system = [ setuptools ];
dependencies = [ cryptography ];
nativeCheckInputs = [ pytestCheckHook ];
@ -21,6 +33,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Noise Protocol Framework";
homepage = "https://github.com/plizonczyk/noiseprotocol/";
changelog = "https://github.com/plizonczyk/noiseprotocol/blob/v${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ ];
};