1{ lib
2, buildPythonPackage
3, factory_boy
4, fetchFromGitHub
5, inflection
6, mock
7, pytest
8, pytestcache
9, pytestCheckHook
10, pytest-cov
11}:
12
13buildPythonPackage rec {
14 pname = "pytest-factoryboy";
15 version = "2.1.0";
16
17 src = fetchFromGitHub {
18 owner = "pytest-dev";
19 repo = "pytest-factoryboy";
20 rev = version;
21 sha256 = "0v6b4ly0p8nknpnp3f4dbslfsifzzjx2vv27rfylx04kzdhg4m9p";
22 };
23
24 buildInputs = [ pytest ];
25
26 propagatedBuildInputs = [
27 factory_boy
28 inflection
29 ];
30
31 checkInputs = [
32 mock
33 pytestCheckHook
34 pytestcache
35 pytest-cov
36 ];
37
38 pytestFlagsArray = [ "--ignore=docs" ];
39 pythonImportsCheck = [ "pytest_factoryboy" ];
40
41 meta = with lib; {
42 description = "Integration of factory_boy into the pytest runner";
43 homepage = "https://pytest-factoryboy.readthedocs.io/en/latest/";
44 maintainers = with maintainers; [ winpat ];
45 license = licenses.mit;
46 };
47}