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