tandoor-recipes: fix build

This commit is contained in:
Weijia Wang 2023-04-04 09:18:44 +03:00
parent 6ca1fd3038
commit 85e2231832
2 changed files with 16 additions and 0 deletions

View File

@ -1,12 +1,25 @@
{ callPackage
, nixosTests
, python3
, fetchFromGitHub
}:
let
python = python3.override {
packageOverrides = self: super: {
django = super.django_4;
django-crispy-forms = super.django-crispy-forms.overridePythonAttrs (_: rec {
version = "1.14.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "django-crispy-forms";
repo = "django-crispy-forms";
rev = "refs/tags/${version}";
hash = "sha256-NZ2lWxsQHc7Qc4HDoWgjJTZ/bJHmjpBf3q1LVLtzA+8=";
};
});
# Tests are incompatible with Django 4
django-js-reverse = super.django-js-reverse.overridePythonAttrs (_: {
doCheck = false;

View File

@ -2,6 +2,7 @@
, buildPythonPackage
, fetchFromGitHub
, django
, setuptools
, pytestCheckHook
, pytest-django
}:
@ -9,6 +10,7 @@
buildPythonPackage rec {
pname = "django-crispy-forms";
version = "2.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "django-crispy-forms";
@ -19,6 +21,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
django
setuptools
];
# FIXME: RuntimeError: Model class source.crispy_forms.tests.forms.CrispyTestModel doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.