Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 80 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081{ stdenv, lib, buildPythonPackage, fetchPypi, pythonRelaxDepsHook, django, funcy, redis, six, pytestCheckHook, pytest-django, mock, dill, jinja2, before-after, pythonOlder, nettools, pkgs}:
buildPythonPackage rec { pname = "django-cacheops"; version = "7.0.2"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-d6N8c9f6z8cpk2XtZqEr56SH3XRd2GwdM8ouv9OzKHg="; };
nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRelaxDeps = [ "funcy" ];
propagatedBuildInputs = [ django funcy redis six ];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ pytestCheckHook pytest-django mock dill jinja2 before-after nettools pkgs.redis ];
preCheck = '' redis-server & REDIS_PID=$! while ! redis-cli --scan ; do echo waiting for redis to be ready sleep 1 done '';
postCheck = '' kill $REDIS_PID '';
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 ]; };}