about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/factory_boy/default.nix
blob: 1c612e2b57ecf4c7c5abb90a84ad06b10b937c69 (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
{ 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
  ];

  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 ];
  };
}