blob: 943ecaa244864101ff77b6e1f278da1a7fe65be4 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
django,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage rec {
pname = "model-bakery";
version = "1.21.0";
pyproject = true;
src = fetchFromGitHub {
owner = "model-bakers";
repo = "model_bakery";
tag = version;
hash = "sha256-BB/CaVDkqL51WvFC+GRWV3z3jHUQrW1KtIuHUn4acHw=";
};
build-system = [ hatchling ];
dependencies = [ django ];
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
pythonImportsCheck = [ "model_bakery" ];
meta = {
description = "Object factory for Django";
homepage = "https://github.com/model-bakers/model_bakery";
changelog = "https://github.com/model-bakers/model_bakery/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|