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

40 lines
974 B
Nix

{
buildPythonPackage,
callPackage,
factory-boy,
fetchFromGitHub,
lib,
wagtail,
}:
buildPythonPackage rec {
pname = "wagtail-factories";
version = "4.2.1";
format = "setuptools";
src = fetchFromGitHub {
repo = pname;
owner = "wagtail";
rev = "refs/tags/${version}";
sha256 = "sha256-jo8VwrmxHBJnORmuR6eTLrf/eupNL2vhXcw81EzfTxM=";
};
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 ];
};
}