python310Packages.django_treebeard: enable tests

- add pythonImportsCheck
This commit is contained in:
Fabian Affolter 2023-01-07 10:57:06 +01:00 committed by GitHub
parent da03a99da5
commit 0cdebad845
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +1,36 @@
{ 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
];
# tests fail "AppRegistryNotReady("Apps aren't loaded yet.")"
doCheck = false;
checkInputs = [
pytest-django
pytestCheckHook
];
pythonImportsCheck = [
"treebeard"
];
meta = with lib; {
description = "Efficient tree implementations for Django";