tandoor-recipes: fix build
This commit is contained in:
parent
6ca1fd3038
commit
85e2231832
2 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue