Fix python3Packages.django-silk (#528392)
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
pillow,
|
||||
pydot,
|
||||
pygments,
|
||||
pytestCheckHook,
|
||||
pytest-cov-stub,
|
||||
pytest-django,
|
||||
python,
|
||||
python-dateutil,
|
||||
pytz,
|
||||
@@ -24,14 +27,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-silk";
|
||||
version = "5.4.3";
|
||||
version = "5.5.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jazzband";
|
||||
repo = "django-silk";
|
||||
tag = version;
|
||||
hash = "sha256-VVgH4h2OeOu/NKGMSOHo2tg8Owj1t+HhEN8xWGrj3m8=";
|
||||
hash = "sha256-F9IHxp2dx0hzu9iOaborJjLyzZjs86rccczhc5GPbtY=";
|
||||
};
|
||||
|
||||
# "test_time_taken" tests aren't suitable for reproducible execution, but Django's
|
||||
@@ -67,18 +70,17 @@ buildPythonPackage rec {
|
||||
networkx
|
||||
pydot
|
||||
factory-boy
|
||||
pytestCheckHook
|
||||
pytest-cov-stub
|
||||
pytest-django
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "silk" ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
preCheck = ''
|
||||
export DB_ENGINE=sqlite3 DB_NAME=':memory:'
|
||||
|
||||
pushd project
|
||||
DB_ENGINE=sqlite3 DB_NAME=':memory:' ${python.interpreter} manage.py test
|
||||
popd # project
|
||||
|
||||
runHook postCheck
|
||||
cd project
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user