1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 django, 7 pytestCheckHook, 8 pythonOlder, 9 pytest-django, 10}: 11 12buildPythonPackage rec { 13 pname = "model-bakery"; 14 version = "1.20.5"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "model-bakers"; 21 repo = "model_bakery"; 22 tag = version; 23 hash = "sha256-Rf1QpIjo94h3lfZCBJfzaOMggPqy37NUOFWUbLROcec="; 24 }; 25 26 build-system = [ hatchling ]; 27 28 dependencies = [ django ]; 29 30 nativeCheckInputs = [ 31 pytest-django 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "model_bakery" ]; 36 37 meta = with lib; { 38 description = "Object factory for Django"; 39 homepage = "https://github.com/model-bakers/model_bakery"; 40 changelog = "https://github.com/model-bakers/model_bakery/blob/${src.tag}/CHANGELOG.md"; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}