1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4
5# build-system
6, poetry-core
7
8# unpropagated
9, pytest
10
11# propagated
12, inflection
13, factory-boy
14, typing-extensions
15
16# tests
17, pytestCheckHook
18}:
19
20buildPythonPackage rec {
21 pname = "pytest-factoryboy";
22 version = "2.5.1";
23 format = "pyproject";
24
25 src = fetchFromGitHub {
26 owner = "pytest-dev";
27 repo = "pytest-factoryboy";
28 rev = version;
29 sha256 = "sha256-zxgezo2PRBKs0mps0qdKWtBygunzlaxg8s9BoBaU1Ig=";
30 };
31
32 nativeBuildInputs = [
33 poetry-core
34 ];
35
36 buildInputs = [
37 pytest
38 ];
39
40 propagatedBuildInputs = [
41 factory-boy
42 inflection
43 typing-extensions
44 ];
45
46 pythonImportsCheck = [
47 "pytest_factoryboy"
48 ];
49
50 nativeCheckInputs = [
51 pytestCheckHook
52 ];
53
54 pytestFlagsArray = [
55 "--ignore=docs"
56 ];
57
58 meta = with lib; {
59 description = "Integration of factory_boy into the pytest runner";
60 homepage = "https://pytest-factoryboy.readthedocs.io/en/latest/";
61 maintainers = with maintainers; [ winpat ];
62 license = licenses.mit;
63 };
64}