Commit bf2d0fcd authored by Alexander's avatar Alexander Committed by Valentin Gagarin
Browse files

python312Packages.xeddsa: init at 1.1.0

parent be3cbddd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
  };
})
+55 −0
Original line number Diff line number Diff line
{
  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; [ ];
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -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;
+2 −0
Original line number Diff line number Diff line
@@ -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 { };