Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage 2, callPackage 3, factory_boy 4, fetchFromGitHub 5, lib 6, wagtail 7}: 8 9buildPythonPackage rec { 10 pname = "wagtail-factories"; 11 version = "4.0.0"; 12 13 src = fetchFromGitHub { 14 repo = pname; 15 owner = "wagtail"; 16 rev = version; 17 sha256 = "sha256-JmFWf+TODQNsSSxYD/JYVhWc82o6rJL13j5J23r8J9A="; 18 }; 19 20 propagatedBuildInputs = [ 21 factory_boy 22 wagtail 23 ]; 24 25 # Tests require wagtail which in turn requires wagtail-factories 26 # Note that pythonImportsCheck is not used because it requires a Django app 27 doCheck = false; 28 29 passthru.tests.wagtail-factories = callPackage ./tests.nix { }; 30 31 meta = with lib; { 32 description = "Factory boy classes for wagtail"; 33 homepage = "https://github.com/wagtail/wagtail-factories"; 34 changelog = "https://github.com/wagtail/wagtail-factories/blob/${version}/CHANGES"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ sephi ]; 37 }; 38}