mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git
synced 2024-11-26 14:01:31 +00:00
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
let
|
|
hostPkgs = import <nixpkgs> {};
|
|
pkgs = hostPkgs.fetchFromGitHub {
|
|
owner = "NixOS";
|
|
repo = "nixpkgs";
|
|
ref = "nixos-22.05";
|
|
rev = "45c9736ed69800a6ff2164fb4538c9e40dad25d6";
|
|
};
|
|
in
|
|
|
|
self: super: rec {
|
|
python39 = super.python39.override {
|
|
packageOverrides = python-self: python-super: {
|
|
strawberry_graphql = python-super.buildPythonPackage rec {
|
|
pname = "strawberry-graphql";
|
|
version = "0.123.0";
|
|
format = "pyproject";
|
|
patches = [
|
|
./strawberry-graphql.patch
|
|
];
|
|
propagatedBuildInputs = with self.python39Packages; [
|
|
typing-extensions
|
|
graphql-core
|
|
python-multipart
|
|
python-dateutil
|
|
flask
|
|
pydantic
|
|
pygments
|
|
poetry
|
|
];
|
|
src = python-super.fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-KsmZ5Xv8tUg6yBxieAEtvoKoRG60VS+iVGV0X6oCExo=";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
pythonPackages = python39.pkgs;
|
|
selfprivacy-api = super.callPackage ./pkgs/selfprivacy-api {
|
|
nixpkgs = pkgs;
|
|
pythonPkgs = pythonPackages;
|
|
};
|
|
selfprivacy-graphql-api = super.callPackage ./pkgs/selfprivacy-graphql-api {
|
|
nixpkgs = pkgs;
|
|
pythonPkgs = pythonPackages;
|
|
};
|
|
}
|