nixpkgs/pkgs/development/python-modules/django-cacheops/default.nix
Fabian Affolter c246d9af83 python311Packages.django-cacheops: re-add six
six was removed in the current master and not 6.2
2023-02-27 13:38:05 +01:00

63 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, django
, funcy
, redis
, pytest-django
, pytestCheckHook
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "django-cacheops";
version = "6.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-zHP9ChwUeZJT/yCopFeRo8jSgCIXswHnDPoIroGeQ48=";
};
propagatedBuildInputs = [
django
funcy
redis
six
];
nativeCheckInputs = [
pytestCheckHook
pytest-django
];
disabledTests = [
# Tests require networking
"test_cached_as"
"test_invalidation_signal"
"test_queryset"
"test_queryset_empty"
"test_lock"
"test_context_manager"
"test_decorator"
"test_in_transaction"
"test_nested"
"test_unhashable_args"
"test_db_agnostic_by_default"
"test_db_agnostic_disabled"
];
DJANGO_SETTINGS_MODULE = "tests.settings";
meta = with lib; {
description = "A slick ORM cache with automatic granular event-driven invalidation for Django";
homepage = "https://github.com/Suor/django-cacheops";
changelog = "https://github.com/Suor/django-cacheops/blob/${version}/CHANGELOG";
license = licenses.bsd3;
maintainers = with maintainers; [ onny ];
};
}