2022-01-24 19:56:48 +00:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
let
|
|
|
|
sp-python = pkgs.python39.withPackages (p: with p; [
|
2022-06-24 17:25:49 +00:00
|
|
|
flask
|
|
|
|
flask-restful
|
|
|
|
setuptools
|
|
|
|
portalocker
|
|
|
|
flask-swagger
|
|
|
|
flask-swagger-ui
|
|
|
|
pytz
|
|
|
|
pytest
|
|
|
|
pytest-mock
|
|
|
|
pytest-datadir
|
|
|
|
huey
|
2022-01-24 19:56:48 +00:00
|
|
|
gevent
|
|
|
|
mnemonic
|
|
|
|
coverage
|
2022-01-27 12:13:00 +00:00
|
|
|
pylint
|
2022-06-24 12:26:51 +00:00
|
|
|
pydantic
|
|
|
|
typing-extensions
|
2022-06-24 17:25:49 +00:00
|
|
|
flask-cors
|
2022-06-24 12:26:51 +00:00
|
|
|
(buildPythonPackage rec {
|
|
|
|
pname = "strawberry-graphql";
|
|
|
|
version = "0.114.5";
|
|
|
|
format = "pyproject";
|
|
|
|
patches = [
|
|
|
|
./strawberry-graphql.patch
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
typing-extensions
|
|
|
|
graphql-core
|
|
|
|
python-multipart
|
|
|
|
python-dateutil
|
|
|
|
flask
|
|
|
|
pydantic
|
|
|
|
pygments
|
|
|
|
poetry
|
2022-06-24 17:25:49 +00:00
|
|
|
flask-cors
|
2022-06-24 12:26:51 +00:00
|
|
|
];
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "b6e007281cf29a66eeba66a512744853d8aa53b4ca2525befb6f350bb7b24df6";
|
|
|
|
};
|
|
|
|
})
|
2022-01-24 19:56:48 +00:00
|
|
|
]);
|
|
|
|
in
|
|
|
|
pkgs.mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
sp-python
|
|
|
|
pkgs.black
|
|
|
|
];
|
|
|
|
shellHook = ''
|
|
|
|
PYTHONPATH=${sp-python}/${sp-python.sitePackages}
|
|
|
|
# maybe set more env-vars
|
|
|
|
'';
|
2022-06-24 17:25:49 +00:00
|
|
|
}
|