Unverified Commit 0cdebad8 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python310Packages.django_treebeard: enable tests

- add pythonImportsCheck
parent da03a99d
Loading
Loading
Loading
Loading
+18 −6
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, django
, fetchPypi
, pytest-django
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "django-treebeard";
  version = "4.6.0";
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-frHrcbJCFPLn3DvSFfDDrjL9Z2QXnNR3SveqtJE53qA=";
  };

  buildInputs = [ pytest ];
  propagatedBuildInputs = [ django ];
  propagatedBuildInputs = [
    django
  ];

  checkInputs = [
    pytest-django
    pytestCheckHook
  ];

  # tests fail  "AppRegistryNotReady("Apps aren't loaded yet.")"
  doCheck = false;
  pythonImportsCheck = [
    "treebeard"
  ];

  meta = with lib; {
    description = "Efficient tree implementations for Django";