2019-10-18 00:03:40 +01:00
|
|
|
{ lib
|
2018-10-15 20:43:20 +01:00
|
|
|
, buildPythonPackage
|
2021-01-13 12:53:47 +00:00
|
|
|
, django
|
2018-11-29 13:33:54 +00:00
|
|
|
, faker
|
2021-01-13 12:53:47 +00:00
|
|
|
, fetchPypi
|
|
|
|
, flask
|
|
|
|
, flask_sqlalchemy
|
|
|
|
, mongoengine
|
|
|
|
, pytestCheckHook
|
|
|
|
, sqlalchemy
|
2018-10-15 20:43:20 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "factory_boy";
|
2021-01-13 12:32:10 +00:00
|
|
|
version = "3.2.0";
|
2018-10-15 20:43:20 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-13 12:32:10 +00:00
|
|
|
sha256 = "0nsw2mdjk8sqds3qsix4cf19ws6i0fak79349pw2581ryc7w0720";
|
2018-10-15 20:43:20 +01:00
|
|
|
};
|
|
|
|
|
2021-01-13 12:53:47 +00:00
|
|
|
propagatedBuildInputs = [ faker ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
django
|
|
|
|
flask
|
|
|
|
flask_sqlalchemy
|
|
|
|
mongoengine
|
|
|
|
pytestCheckHook
|
|
|
|
sqlalchemy
|
|
|
|
];
|
2018-11-29 18:21:12 +00:00
|
|
|
|
2021-01-13 12:53:47 +00:00
|
|
|
# Checks for MongoDB requires an a running DB
|
|
|
|
disabledTests = [ "MongoEngineTestCase" ];
|
|
|
|
pythonImportsCheck = [ "factory" ];
|
2018-10-15 20:43:20 +01:00
|
|
|
|
2019-10-18 00:03:40 +01:00
|
|
|
meta = with lib; {
|
2021-01-13 12:55:46 +00: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 20:43:20 +01:00
|
|
|
};
|
|
|
|
}
|