Commit e82086ea authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

granian: 1.7.0 -> 2.2.0

parent 2e6d6f5b
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -4,24 +4,25 @@
  rustPlatform,
  python3Packages,
  libiconv,
  nix-update-script,
}:

python3Packages.buildPythonApplication rec {
  pname = "granian";
  version = "1.7.0";
  version = "2.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "emmett-framework";
    repo = "granian";
    rev = "v${version}";
    hash = "sha256-OjyDwfp0d779oFQ7wUdR1eRPP35kcJa3wIdcYGrGGME=";
    hash = "sha256-YQ9+PcKXtSc+wdvhgDfSAfcv/y53oqcrPCEI9dDKFa0=";
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit src;
    name = "${pname}-${version}";
    hash = "sha256-jAjHvVyFhGGE/OwfusUE/GdrNrEgvh48lmC5tla4lhI=";
    hash = "sha256-XJ61+u5aGQis6YkfASD+WJHEKDBL+2ImqCAuQmm3A/g=";
  };

  nativeBuildInputs = with rustPlatform; [
@@ -38,6 +39,8 @@ python3Packages.buildPythonApplication rec {
    python3Packages.click
  ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Rust HTTP server for Python ASGI/WSGI/RSGI applications";
    homepage = "https://github.com/emmett-framework/granian";