Diff: https://github.com/model-bakers/model_bakery/compare/refs/tags/1.20.4...refs/tags/1.20.5 Changelog: https://github.com/model-bakers/model_bakery/blob/1.20.5/CHANGELOG.md
45 lines
908 B
Nix
45 lines
908 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
django,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pytest-django,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "model-bakery";
|
|
version = "1.20.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "model-bakers";
|
|
repo = "model_bakery";
|
|
tag = version;
|
|
hash = "sha256-Rf1QpIjo94h3lfZCBJfzaOMggPqy37NUOFWUbLROcec=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [ django ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-django
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "model_bakery" ];
|
|
|
|
meta = with lib; {
|
|
description = "Object factory for Django";
|
|
homepage = "https://github.com/model-bakers/model_bakery";
|
|
changelog = "https://github.com/model-bakers/model_bakery/blob/${src.tag}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|