Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / model-bakery / default.nix
bloba5b38b525f7d2fef6f820f35fc9d5b96e8f929e3
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , hatchling
5 , django
6 , pytestCheckHook
7 , pythonOlder
8 , pytest-django
9 }:
11 buildPythonPackage rec {
12   pname = "model-bakery";
13   version = "1.17.0";
14   format = "pyproject";
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "model-bakers";
20     repo = "model_bakery";
21     rev = "refs/tags/${version}";
22     hash = "sha256-o3BI2lMwctR9tiGmY07dAOQUfv9K4rWkc/xI6uHnVfs=";
23   };
25   nativeBuildInputs = [
26     hatchling
27   ];
29   propagatedBuildInputs = [
30     django
31   ];
33   nativeCheckInputs = [
34     pytest-django
35     pytestCheckHook
36   ];
38   pythonImportsCheck = [
39     "model_bakery"
40   ];
42   meta = with lib; {
43     description = "Object factory for Django";
44     homepage = "https://github.com/model-bakers/model_bakery";
45     changelog = "https://github.com/model-bakers/model_bakery/blob/${version}/CHANGELOG.md";
46     license = licenses.asl20;
47     maintainers = with maintainers; [ fab ];
48   };