uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
87
pkgs/development/python-modules/django-redis/default.nix
Normal file
87
pkgs/development/python-modules/django-redis/default.nix
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, buildPythonPackage
|
||||
|
||||
# propagated
|
||||
, django
|
||||
, hiredis
|
||||
, lz4
|
||||
, msgpack
|
||||
, redis
|
||||
|
||||
# testing
|
||||
, pkgs
|
||||
, pytest-django
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "django-redis";
|
||||
version = "5.2.0";
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jazzband";
|
||||
repo = "django-redis";
|
||||
rev = version;
|
||||
sha256 = "sha256-e8wCgfxBT+WKFY4H83CTMirTpQym3QAoeWnXbRCDO90=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/-cov/d' setup.cfg
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django
|
||||
hiredis
|
||||
lz4
|
||||
msgpack
|
||||
redis
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"django_redis"
|
||||
];
|
||||
|
||||
DJANGO_SETTINGS_MODULE = "tests.settings.sqlite";
|
||||
|
||||
preCheck = ''
|
||||
${pkgs.redis}/bin/redis-server &
|
||||
REDIS_PID=$!
|
||||
'';
|
||||
|
||||
postCheck = ''
|
||||
kill $REDIS_PID
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytest-django
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# ModuleNotFoundError: No module named 'test_cache_options'
|
||||
"test_custom_key_function"
|
||||
# ModuleNotFoundError: No module named 'test_client'
|
||||
"test_delete_pattern_calls_get_client_given_no_client"
|
||||
"test_delete_pattern_calls_make_pattern"
|
||||
"test_delete_pattern_calls_scan_iter_with_count_if_itersize_given"
|
||||
"test_delete_pattern_calls_scan_iter_with_count_if_itersize_given"
|
||||
"test_delete_pattern_calls_scan_iter"
|
||||
"test_delete_pattern_calls_delete_for_given_keys"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Full featured redis cache backend for Django";
|
||||
homepage = "https://github.com/jazzband/django-redis";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue