2019-10-18 01:03:40 +02:00
|
|
|
{ lib
|
2018-10-15 21:43:20 +02:00
|
|
|
, buildPythonPackage
|
2021-01-13 13:53:47 +01:00
|
|
|
, django
|
2018-11-29 14:33:54 +01:00
|
|
|
, faker
|
2021-01-13 13:53:47 +01:00
|
|
|
, fetchPypi
|
|
|
|
, flask
|
|
|
|
, flask_sqlalchemy
|
|
|
|
, mongoengine
|
|
|
|
, pytestCheckHook
|
|
|
|
, sqlalchemy
|
2018-10-15 21:43:20 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "factory_boy";
|
2021-01-13 13:32:10 +01:00
|
|
|
version = "3.2.0";
|
2018-10-15 21:43:20 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-13 13:32:10 +01:00
|
|
|
sha256 = "0nsw2mdjk8sqds3qsix4cf19ws6i0fak79349pw2581ryc7w0720";
|
2018-10-15 21:43:20 +02:00
|
|
|
};
|
|
|
|
|
2021-01-13 13:53:47 +01:00
|
|
|
propagatedBuildInputs = [ faker ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
django
|
|
|
|
flask
|
|
|
|
flask_sqlalchemy
|
|
|
|
mongoengine
|
|
|
|
pytestCheckHook
|
|
|
|
sqlalchemy
|
|
|
|
];
|
2018-11-29 19:21:12 +01:00
|
|
|
|
2021-01-13 13:53:47 +01:00
|
|
|
# Checks for MongoDB requires an a running DB
|
|
|
|
disabledTests = [ "MongoEngineTestCase" ];
|
|
|
|
pythonImportsCheck = [ "factory" ];
|
2018-10-15 21:43:20 +02:00
|
|
|
|
2019-10-18 01:03:40 +02:00
|
|
|
meta = with lib; {
|
2021-01-13 13:55:46 +01:00
|
|
|
description = "Python package to create factories for complex objects";
|
|
|
|
homepage = "https://github.com/rbarrois/factory_boy";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2018-10-15 21:43:20 +02:00
|
|
|
};
|
|
|
|
}
|