2021-11-17 12:31:52 +00:00
|
|
|
let
|
2022-08-12 15:38:07 +00:00
|
|
|
pkgs = let
|
|
|
|
hostPkgs = import <nixpkgs> {};
|
|
|
|
pinnedPkgs = hostPkgs.fetchFromGitHub {
|
|
|
|
owner = "NixOS";
|
|
|
|
repo = "nixpkgs";
|
|
|
|
rev = "45c9736ed69800a6ff2164fb4538c9e40dad25d6";
|
2022-08-12 15:50:21 +00:00
|
|
|
hash = "sha256:0q84mvh4liacqv8fdxpkm28233mfm5x1s36wwxhwdq01jivk58xn";
|
2022-08-12 15:38:07 +00:00
|
|
|
};
|
|
|
|
in import pinnedPkgs {};
|
2022-08-12 16:39:42 +00:00
|
|
|
hostPkgs = import <nixpkgs> {};
|
2021-11-17 12:31:52 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
self: super: rec {
|
2022-08-12 16:09:16 +00:00
|
|
|
python39 = pkgs.python39.override {
|
2022-06-24 14:25:03 +00:00
|
|
|
packageOverrides = python-self: python-super: {
|
|
|
|
strawberry_graphql = python-super.buildPythonPackage rec {
|
|
|
|
pname = "strawberry-graphql";
|
2022-08-01 10:29:55 +00:00
|
|
|
version = "0.123.0";
|
2022-06-24 14:25:03 +00:00
|
|
|
format = "pyproject";
|
|
|
|
patches = [
|
|
|
|
./strawberry-graphql.patch
|
|
|
|
];
|
2022-08-12 15:33:12 +00:00
|
|
|
propagatedBuildInputs = with pkgs.python39Packages; [
|
2022-06-24 14:25:03 +00:00
|
|
|
typing-extensions
|
2022-08-12 13:59:24 +00:00
|
|
|
graphql-core
|
2022-06-24 14:25:03 +00:00
|
|
|
python-multipart
|
|
|
|
python-dateutil
|
|
|
|
flask
|
|
|
|
pydantic
|
|
|
|
pygments
|
|
|
|
poetry
|
|
|
|
];
|
2022-06-24 14:26:03 +00:00
|
|
|
src = python-super.fetchPypi {
|
2022-06-24 14:25:03 +00:00
|
|
|
inherit pname version;
|
2022-08-01 10:29:55 +00:00
|
|
|
sha256 = "sha256-KsmZ5Xv8tUg6yBxieAEtvoKoRG60VS+iVGV0X6oCExo=";
|
2022-06-24 14:25:03 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-06-24 14:29:27 +00:00
|
|
|
pythonPackages = python39.pkgs;
|
2022-06-24 14:28:00 +00:00
|
|
|
selfprivacy-api = super.callPackage ./pkgs/selfprivacy-api {
|
2022-08-12 16:39:42 +00:00
|
|
|
pkgs = hostPkgs;
|
2022-06-24 14:28:00 +00:00
|
|
|
pythonPkgs = pythonPackages;
|
2022-08-12 15:38:07 +00:00
|
|
|
lib = pkgs.lib;
|
2022-06-24 14:28:00 +00:00
|
|
|
};
|
2022-08-12 12:12:02 +00:00
|
|
|
selfprivacy-graphql-api = super.callPackage ./pkgs/selfprivacy-graphql-api {
|
2022-08-12 16:39:42 +00:00
|
|
|
pkgs = hostPkgs;
|
2022-08-12 12:12:02 +00:00
|
|
|
pythonPkgs = pythonPackages;
|
2022-08-12 15:38:07 +00:00
|
|
|
lib = pkgs.lib;
|
2022-08-12 12:12:02 +00:00
|
|
|
};
|
2022-06-24 13:50:51 +00:00
|
|
|
}
|