depot/third_party/nixpkgs/pkgs/development/python-modules/model-bakery/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

44 lines
923 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
django,
pytestCheckHook,
pythonOlder,
pytest-django,
}:
buildPythonPackage rec {
pname = "model-bakery";
version = "1.18.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "model-bakers";
repo = "model_bakery";
rev = "refs/tags/${version}";
hash = "sha256-mf6NV7r/9kDCRlszx/QGtfEsC1O/SATd6+EX+w7ptEQ=";
};
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 ];
};
}