python310Packages.django_treebeard: enable tests
- add pythonImportsCheck
This commit is contained in:
parent
da03a99da5
commit
0cdebad845
|
@ -1,24 +1,36 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
|
||||||
, pytest
|
|
||||||
, django
|
, django
|
||||||
|
, fetchPypi
|
||||||
|
, pytest-django
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "django-treebeard";
|
pname = "django-treebeard";
|
||||||
version = "4.6.0";
|
version = "4.6.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-frHrcbJCFPLn3DvSFfDDrjL9Z2QXnNR3SveqtJE53qA=";
|
hash = "sha256-frHrcbJCFPLn3DvSFfDDrjL9Z2QXnNR3SveqtJE53qA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytest ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ django ];
|
django
|
||||||
|
];
|
||||||
|
|
||||||
# tests fail "AppRegistryNotReady("Apps aren't loaded yet.")"
|
checkInputs = [
|
||||||
doCheck = false;
|
pytest-django
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"treebeard"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Efficient tree implementations for Django";
|
description = "Efficient tree implementations for Django";
|
||||||
|
|
Loading…
Reference in a new issue