Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, buildPythonPackage, django, fetchFromGitLab, hatchling, ormsgpack, pythonOlder, pyzstd, rustPlatform,}:
buildPythonPackage (finalAttrs: { pname = "django-vcache"; version = "3.2.0"; pyproject = true;
src = fetchFromGitLab { owner = "glitchtip"; repo = "django-vcache"; tag = "v${finalAttrs.version}"; hash = "sha256-KLA6Jel/+XTAECd22+TComo51RFZLvPqbOeVn/1VTO4="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) pname version src; hash = "sha256-YgOLIwqdjERf7krNx49gP5L8M07+oqtor2yT/AQ0y34="; };
build-system = [ hatchling ];
dependencies = [ django ormsgpack ] ++ lib.optional (pythonOlder "3.14") pyzstd;
nativeBuildInputs = [ rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook ];
pythonImportsCheck = [ "django_vcache" ];
# requires valkey sentinel cluster doCheck = false;
meta = { description = "Specialized, lightweight Django cache backend for Valkey"; homepage = "https://gitlab.com/glitchtip/django-vcache/"; changelog = "https://gitlab.com/glitchtip/django-vcache/-/blob/main/CHANGELOG.md#${ lib.replaceString "." "" finalAttrs.version }"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ defelo felbinger ]; };})