blob: 5aa8671bf2dd1101a2d4893a1be635d3405a4613 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# unpropagated
pytest,
# propagated
inflection,
factory-boy,
typing-extensions,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pytest-factoryboy";
version = "2.8.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pytest-dev";
repo = "pytest-factoryboy";
rev = version;
sha256 = "sha256-9dMsUujMCk89Ze4H9VJRS+ihjk0PAxKb8xqlw0+ROEI=";
};
build-system = [ poetry-core ];
buildInputs = [ pytest ];
dependencies = [
factory-boy
inflection
typing-extensions
];
pythonImportsCheck = [ "pytest_factoryboy" ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [ "docs" ];
meta = {
description = "Integration of factory_boy into the pytest runner";
homepage = "https://pytest-factoryboy.readthedocs.io/en/latest/";
maintainers = with lib.maintainers; [ winpat ];
license = lib.licenses.mit;
};
}
|