Unverified Commit 86c86823 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.libvalkey: init at 4.0.1 (#490905)

parents 5649ded8 20cb3fa2
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage (finalAttrs: {
  pname = "libvalkey-py";
  version = "4.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "valkey-io";
    repo = "libvalkey-py";
    tag = "v${finalAttrs.version}";
    fetchSubmodules = true;
    hash = "sha256-tOq4SC9xA1rXfclqIzseedu7lyQ+7ZcVy/4ELTAorJ4=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "libvalkey" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  preCheck = ''
    # import from $out
    rm -r libvalkey
  '';

  meta = {
    changelog = "https://github.com/valkey-io/libvalkey-py/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    description = "Python wrapper for libvalkey";
    homepage = "https://github.com/valkey-io/libvalkey-py";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.dotlambda ];
  };
})
+2 −1
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@

  # optional-dependencies
  cryptography,
  libvalkey,
  pyopenssl,
  requests,

@@ -49,7 +50,7 @@ buildPythonPackage rec {
  build-system = [ setuptools ];

  optional-dependencies = {
    # TODO: libvalkey = [ libvalkey ];
    libvalkey = [ libvalkey ];
    ocsp = [
      cryptography
      pyopenssl
+2 −0
Original line number Diff line number Diff line
@@ -8757,6 +8757,8 @@ self: super: with self; {
  libuuu = callPackage ../development/python-modules/libuuu { };
  libvalkey = callPackage ../development/python-modules/libvalkey { };
  libversion = callPackage ../development/python-modules/libversion { inherit (pkgs) libversion; };
  libvirt = callPackage ../development/python-modules/libvirt { inherit (pkgs) libvirt; };