blob: a5b0130911e98b41b58b8d4bd5786ad829d44c14 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{ lib
, buildPythonPackage
, django
, faker
, fetchPypi
, flask
, flask-sqlalchemy
, mongoengine
, pytestCheckHook
, sqlalchemy
}:
buildPythonPackage rec {
pname = "factory-boy";
version = "3.2.1";
format = "setuptools";
src = fetchPypi {
pname = "factory_boy";
inherit version;
sha256 = "sha256-qY0newwEfHXrbkq4UIp/gfsD0sshmG9ieRNUbveipV4=";
};
propagatedBuildInputs = [
faker
];
nativeCheckInputs = [
django
flask
flask-sqlalchemy
mongoengine
pytestCheckHook
sqlalchemy
];
# Checks for MongoDB requires an a running DB
disabledTests = [
"MongoEngineTestCase"
];
disabledTestPaths = [
# incompatible with latest flask-sqlalchemy
"examples/flask_alchemy/test_demoapp.py"
];
pythonImportsCheck = [
"factory"
];
meta = with lib; {
description = "Python package to create factories for complex objects";
homepage = "https://github.com/rbarrois/factory_boy";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|