depot/third_party/nixpkgs/pkgs/development/python-modules/model-bakery/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
923 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
django,
pytestCheckHook,
pythonOlder,
pytest-django,
}:
buildPythonPackage rec {
pname = "model-bakery";
version = "1.18.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "model-bakers";
repo = "model_bakery";
rev = "refs/tags/${version}";
hash = "sha256-QsfVKPasGFzcLIwx7t9H9I2o2JNUFLKbKc86tntltg8=";
};
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/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}