depot/third_party/nixpkgs/pkgs/development/python-modules/wagtail-factories/default.nix
Default email ed0c4a69f0 Project import generated by Copybara.
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
2023-03-31 00:05:00 +02:00

38 lines
926 B
Nix

{ buildPythonPackage
, callPackage
, factory_boy
, fetchFromGitHub
, lib
, wagtail
}:
buildPythonPackage rec {
pname = "wagtail-factories";
version = "4.0.0";
src = fetchFromGitHub {
repo = pname;
owner = "wagtail";
rev = version;
sha256 = "sha256-JmFWf+TODQNsSSxYD/JYVhWc82o6rJL13j5J23r8J9A=";
};
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 ];
};
}