Unverified Commit 251fec3a authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

python3Packages.djoser: init at 2.3.1 (#418489)

parents b5b8d1f9 3accd8f7
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  django,
  djangorestframework-simplejwt,
  social-auth-app-django,
}:

buildPythonPackage rec {
  pname = "djoser";
  version = "2.3.1";

  src = fetchFromGitHub {
    owner = "sunscrapers";
    repo = "djoser";
    tag = version;
    hash = "sha256-xPhf7FiJSq5bHfAU5RKbobgnsRh/6cLcXP6vfrLdzJA=";
  };

  buildInputs = [
    django
    djangorestframework-simplejwt
    social-auth-app-django
  ];

  pyproject = true;

  build-system = [
    poetry-core
  ];

  # djet isn't packaged yet
  # nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "djoser" ];

  meta = {
    changelog = "https://github.com/sunscrapers/djoser/releases/tag/${version}";
    description = "REST implementation of Django authentication system";
    homepage = "https://github.com/sunscrapers/djoser";
    maintainers = with lib.maintainers; [ MostafaKhaled ];
    license = lib.licenses.mit;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -4080,6 +4080,8 @@ self: super: with self; {
  djmail = callPackage ../development/python-modules/djmail { };
  djoser = callPackage ../development/python-modules/djoser { };
  dkimpy = callPackage ../development/python-modules/dkimpy { };
  dlib = callPackage ../development/python-modules/dlib { inherit (pkgs) dlib; };