mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-08 06:13:55 +00:00
Changelog: https://gitlab.com/glitchtip/django-vcache/-/blob/v2.1.1/CHANGELOG.md Diff: https://gitlab.com/glitchtip/django-vcache/-/compare/v1.0.0...v2.1.1
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
django,
|
|
fetchFromGitLab,
|
|
hatchling,
|
|
ormsgpack,
|
|
pythonOlder,
|
|
pyzstd,
|
|
rustPlatform,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "django-vcache";
|
|
version = "2.1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "glitchtip";
|
|
repo = "django-vcache";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-EUTZ7dUpjwZ7cU4Hgud40PKfryX5gNyAgaRBGEdy9WE=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
inherit (finalAttrs) src;
|
|
hash = "sha256-fj0Ukfo9+Aq8D+spqB5OzL8QkPqpHqr2AaCgYqDCjzw=";
|
|
};
|
|
|
|
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
|
|
];
|
|
};
|
|
})
|