mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nix-repo.git
synced 2024-11-26 22:11:30 +00:00
59 lines
1.6 KiB
Nix
59 lines
1.6 KiB
Nix
let
|
|
pkgs = import <nixpkgs> { };
|
|
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
|
|
(buildPythonPackage rec {
|
|
pname = "graphql-core";
|
|
version = "3.2.0";
|
|
format = "setuptools";
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-huKgvgCL/eGe94OI3opyWh2UKpGQykMcJKYIN5c4A84=";
|
|
};
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytest-benchmark
|
|
pytestCheckHook
|
|
];
|
|
pythonImportsCheck = [
|
|
"graphql"
|
|
];
|
|
})
|
|
];
|
|
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;
|
|
};
|
|
}
|