python312Packages.xeddsa: init at 1.1.0

This commit is contained in:
Alexander 2025-04-30 00:01:56 -05:00 committed by Valentin Gagarin
parent be3cbddd94
commit bf2d0fcde3
4 changed files with 58 additions and 3 deletions

View File

@ -33,7 +33,7 @@ stdenv.mkDerivation (finalAttrs: {
changelog = "https://github.com/Syndace/libxeddsa/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
teams = with lib.teams; [ ngi ];
maintainers = with lib.maintainers; [ axler1 ];
maintainers = with lib.maintainers; [ ];
platforms = lib.platforms.all;
};
})

View File

@ -0,0 +1,55 @@
{
buildPythonPackage,
lib,
fetchFromGitHub,
setuptools,
cffi,
libsodium,
libxeddsa,
pytestCheckHook,
nix-update-script,
}:
buildPythonPackage rec {
pname = "xeddsa";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Syndace";
repo = "python-xeddsa";
tag = "v${version}";
hash = "sha256-636zsJXD8EtLDXMIkJTON0g3sg0EPrMzcfR7SUrURac=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools<74" "setuptools"
'';
passthru.updateScript = nix-update-script { };
build-system = [ setuptools ];
buildInputs = [
libsodium
libxeddsa
];
dependencies = [ cffi ];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "xeddsa" ];
meta = {
description = "Python bindings to libxeddsa";
homepage = "https://github.com/Syndace/python-xeddsa";
changelog = "https://github.com/Syndace/python-xeddsa/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
teams = with lib.teams; [ ngi ];
maintainers = with lib.maintainers; [ ];
};
}

View File

@ -10273,8 +10273,6 @@ with pkgs;
};
libxcrypt-legacy = libxcrypt.override { enableHashes = "all"; };
libxeddsa = callPackage ../development/libraries/libxeddsa { };
libxkbcommon = libxkbcommon_8;
libxml2 = callPackage ../development/libraries/libxml2 {
python = python3;

View File

@ -19110,6 +19110,8 @@ self: super: with self; {
xdxf2html = callPackage ../development/python-modules/xdxf2html { };
xeddsa = toPythonModule (callPackage ../development/python-modules/xeddsa { });
xen = toPythonModule (pkgs.xen.override { python3Packages = self; });
xformers = callPackage ../development/python-modules/xformers { };