mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-26 05:51:29 +00:00
74 lines
1.5 KiB
Nix
74 lines
1.5 KiB
Nix
{ pkgs ? import <nixpkgs> { } }:
|
|
let
|
|
sp-python = pkgs.python39.withPackages (p: with p; [
|
|
setuptools
|
|
portalocker
|
|
pytz
|
|
pytest
|
|
pytest-mock
|
|
pytest-datadir
|
|
huey
|
|
gevent
|
|
mnemonic
|
|
coverage
|
|
pylint
|
|
pydantic
|
|
typing-extensions
|
|
psutil
|
|
black
|
|
redis
|
|
fastapi
|
|
uvicorn
|
|
(buildPythonPackage rec {
|
|
pname = "strawberry-graphql";
|
|
version = "0.123.0";
|
|
format = "pyproject";
|
|
patches = [
|
|
./strawberry-graphql.patch
|
|
];
|
|
propagatedBuildInputs = [
|
|
typing-extensions
|
|
python-multipart
|
|
python-dateutil
|
|
# flask
|
|
pydantic
|
|
pygments
|
|
poetry
|
|
redis
|
|
# flask-cors
|
|
(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 = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "KsmZ5Xv8tUg6yBxieAEtvoKoRG60VS+iVGV0X6oCExo=";
|
|
};
|
|
})
|
|
]);
|
|
in
|
|
pkgs.mkShell {
|
|
buildInputs = [
|
|
sp-python
|
|
pkgs.black
|
|
];
|
|
shellHook = ''
|
|
PYTHONPATH=${sp-python}/${sp-python.sitePackages}
|
|
# maybe set more env-vars
|
|
'';
|
|
}
|