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