Files
nixpkgs/pkgs/development/python-modules/django-cache-url/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
899 B
Nix

{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "django-cache-url";
version = "3.4.5";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "epicserve";
repo = "django-cache-url";
tag = "v${version}";
hash = "sha256-SjTcBYaFMD8XwIlqOgoJrc30FLrpX+M2ZcvZzA9ou6g=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
django
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "django_cache_url" ];
meta = {
description = "Use Cache URLs in your Django application";
homepage = "https://github.com/epicserve/django-cache-url";
changelog = "https://github.com/epicserve/django-cache-url/blob/v${version}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = [ ];
};
}