Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.18.2"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "model-bakers"; 21 repo = "model_bakery"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-X+P4ajTtjzIUFlOGM5D87oEb8nN1MFUyKtNy8RKAvB0="; 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/${version}/CHANGELOG.md"; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}