about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/factory_boy/default.nix
blob: 845e27dcc4476461d2bb715d21ab7765d70c4a80 (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
{ lib
, buildPythonPackage
, django
, faker
, fetchPypi
, flask
, flask_sqlalchemy
, mongoengine
, pytestCheckHook
, sqlalchemy
}:

buildPythonPackage rec {
  pname = "factory_boy";
  version = "3.2.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0nsw2mdjk8sqds3qsix4cf19ws6i0fak79349pw2581ryc7w0720";
  };

  propagatedBuildInputs = [ faker ];

  checkInputs = [
    django
    flask
    flask_sqlalchemy
    mongoengine
    pytestCheckHook
    sqlalchemy
  ];

  # Checks for MongoDB requires an a running DB
  disabledTests = [ "MongoEngineTestCase" ];
  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 ];
  };
}