Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at r-updates 46 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 django, 5 fetchFromGitHub, 6 pytest-django, 7 pytestCheckHook, 8 uv-build, 9}: 10 11buildPythonPackage (finalAttrs: { 12 pname = "model-bakery"; 13 version = "1.23.3"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "model-bakers"; 18 repo = "model_bakery"; 19 tag = finalAttrs.version; 20 hash = "sha256-W5n/L5D64OCCZkVi1IFHNl/mIR1EW6PIVuvmM78kq78="; 21 }; 22 23 postPatch = '' 24 substituteInPlace pyproject.toml \ 25 --replace-fail "uv_build>=0.9.26,<0.10.0" "uv_build" 26 ''; 27 28 build-system = [ uv-build ]; 29 30 dependencies = [ django ]; 31 32 nativeCheckInputs = [ 33 pytest-django 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "model_bakery" ]; 38 39 meta = { 40 description = "Object factory for Django"; 41 homepage = "https://github.com/model-bakers/model_bakery"; 42 changelog = "https://github.com/model-bakers/model_bakery/blob/${finalAttrs.src.tag}/CHANGELOG.md"; 43 license = lib.licenses.asl20; 44 maintainers = with lib.maintainers; [ fab ]; 45 }; 46})