selfprivacy-nix-repo/default.nix

52 lines
1.4 KiB
Nix

let
pkgs = let
hostPkgs = import <nixpkgs> {};
pinnedPkgs = hostPkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "45c9736ed69800a6ff2164fb4538c9e40dad25d6";
hash = "sha256:0q84mvh4liacqv8fdxpkm28233mfm5x1s36wwxhwdq01jivk58xn";
};
in import pinnedPkgs {};
in
self: super: rec {
python39 = pkgs.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 pkgs.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 {
pkgs = pkgs;
pythonPkgs = pythonPackages;
lib = pkgs.lib;
};
selfprivacy-graphql-api = super.callPackage ./pkgs/selfprivacy-graphql-api {
pkgs = pkgs;
pythonPkgs = pythonPackages;
lib = pkgs.lib;
};
}