summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-factoryboy/default.nix
blob: 349ccf311ddea12af768c984ccd8a0925a2b41db (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
58
59
60
61
62
63
64
{ lib
, buildPythonPackage
, fetchFromGitHub

# build-system
, poetry-core

# unpropagated
, pytest

# propagated
, inflection
, factory-boy
, typing-extensions

# tests
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pytest-factoryboy";
  version = "2.5.1";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "pytest-dev";
    repo = "pytest-factoryboy";
    rev = version;
    sha256 = "sha256-zxgezo2PRBKs0mps0qdKWtBygunzlaxg8s9BoBaU1Ig=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  buildInputs = [
    pytest
  ];

  propagatedBuildInputs = [
    factory-boy
    inflection
    typing-extensions
  ];

  pythonImportsCheck = [
    "pytest_factoryboy"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pytestFlagsArray = [
    "--ignore=docs"
  ];

  meta = with lib; {
    description = "Integration of factory_boy into the pytest runner";
    homepage = "https://pytest-factoryboy.readthedocs.io/en/latest/";
    maintainers = with maintainers; [ winpat ];
    license = licenses.mit;
  };
}