python3Packages.factory_boy: enable tests
This commit is contained in:
parent
92840f5dde
commit
c4ab252be9
|
@ -1,10 +1,13 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, django
|
||||||
, isPy27
|
|
||||||
, faker
|
, faker
|
||||||
, python
|
, fetchPypi
|
||||||
, ipaddress
|
, flask
|
||||||
|
, flask_sqlalchemy
|
||||||
|
, mongoengine
|
||||||
|
, pytestCheckHook
|
||||||
|
, sqlalchemy
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -16,10 +19,20 @@ buildPythonPackage rec {
|
||||||
sha256 = "0nsw2mdjk8sqds3qsix4cf19ws6i0fak79349pw2581ryc7w0720";
|
sha256 = "0nsw2mdjk8sqds3qsix4cf19ws6i0fak79349pw2581ryc7w0720";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ faker ] ++ lib.optionals isPy27 [ ipaddress ];
|
propagatedBuildInputs = [ faker ];
|
||||||
|
|
||||||
# tests not included with pypi release
|
checkInputs = [
|
||||||
doCheck = false;
|
django
|
||||||
|
flask
|
||||||
|
flask_sqlalchemy
|
||||||
|
mongoengine
|
||||||
|
pytestCheckHook
|
||||||
|
sqlalchemy
|
||||||
|
];
|
||||||
|
|
||||||
|
# Checks for MongoDB requires an a running DB
|
||||||
|
disabledTests = [ "MongoEngineTestCase" ];
|
||||||
|
pythonImportsCheck = [ "factory" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Python package to create factories for complex objects";
|
description = "A Python package to create factories for complex objects";
|
||||||
|
|
Loading…
Reference in New Issue