import fetchers?

test-upstream-strawberry
inexcode 2022-08-12 18:43:06 +04:00
parent 0a2fa826db
commit 8b1d08f3aa
1 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
{ lib, fetchFromGitHub, fetchpatch }:
let let
pkgs = import <nixpkgs> { }; pkgs = import <nixpkgs> { };
in in
@ -26,7 +27,7 @@ self: super: rec {
pname = "starlette"; pname = "starlette";
version = "0.19.0"; version = "0.19.0";
format = "setuptools"; format = "setuptools";
src = python-super.fetchFromGitHub { src = fetchFromGitHub {
owner = "encode"; owner = "encode";
repo = pname; repo = pname;
rev = version; rev = version;
@ -69,7 +70,7 @@ self: super: rec {
pname = "fastapi"; pname = "fastapi";
version = "0.75.2"; version = "0.75.2";
format = "flit"; format = "flit";
src = python-super.fetchFromGitHub { src = fetchFromGitHub {
owner = "tiangolo"; owner = "tiangolo";
repo = pname; repo = pname;
rev = version; rev = version;
@ -97,7 +98,7 @@ self: super: rec {
patches = [ patches = [
# Bump starlette, https://github.com/tiangolo/fastapi/pull/4483 # Bump starlette, https://github.com/tiangolo/fastapi/pull/4483
(python-super.fetchpatch { (fetchpatch {
name = "support-later-starlette.patch"; name = "support-later-starlette.patch";
# PR contains multiple commits # PR contains multiple commits
url = "https://patch-diff.githubusercontent.com/raw/tiangolo/fastapi/pull/4483.patch"; url = "https://patch-diff.githubusercontent.com/raw/tiangolo/fastapi/pull/4483.patch";