depot/third_party/nixpkgs/pkgs/development/python-modules/wagtail-factories/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

38 lines
942 B
Nix

{ buildPythonPackage
, callPackage
, factory_boy
, fetchFromGitHub
, lib
, wagtail
}:
buildPythonPackage rec {
pname = "wagtail-factories";
version = "4.1.0";
src = fetchFromGitHub {
repo = pname;
owner = "wagtail";
rev = "refs/tags/v${version}";
sha256 = "sha256-xNLHJ/8IZt3pzHAzr9swcL6GcIQyIjIFfoeHUW1i76U=";
};
propagatedBuildInputs = [
factory_boy
wagtail
];
# Tests require wagtail which in turn requires wagtail-factories
# Note that pythonImportsCheck is not used because it requires a Django app
doCheck = false;
passthru.tests.wagtail-factories = callPackage ./tests.nix { };
meta = with lib; {
description = "Factory boy classes for wagtail";
homepage = "https://github.com/wagtail/wagtail-factories";
changelog = "https://github.com/wagtail/wagtail-factories/blob/${version}/CHANGES";
license = licenses.mit;
maintainers = with maintainers; [ sephi ];
};
}