14bee8cdf3
Diff: https://github.com/model-bakers/model_bakery/compare/1.23.2...1.23.3 Changelog: https://github.com/model-bakers/model_bakery/blob/1.23.3/CHANGELOG.md
47 lines
1010 B
Nix
47 lines
1010 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
django,
|
|
fetchFromGitHub,
|
|
pytest-django,
|
|
pytestCheckHook,
|
|
uv-build,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "model-bakery";
|
|
version = "1.23.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "model-bakers";
|
|
repo = "model_bakery";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-W5n/L5D64OCCZkVi1IFHNl/mIR1EW6PIVuvmM78kq78=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "uv_build>=0.9.26,<0.10.0" "uv_build"
|
|
'';
|
|
|
|
build-system = [ uv-build ];
|
|
|
|
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/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|