Merge pull request #185838 from Izorkin/init-strawberry
This commit is contained in:
commit
7fa7b92d99
@ -0,0 +1,46 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
||||
, setuptools-scm, wheel
|
||||
, pytestCheckHook, pytest-mock, pytest-sugar
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "backports-cached-property";
|
||||
version = "1.0.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "penguinolog";
|
||||
repo = "backports.cached_property";
|
||||
rev = version;
|
||||
sha256 = "sha256-rdgKbVQaELilPrN4ve8RbbaLiT14Xex0esy5vUX2ZBc=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
wheel
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
pytest-sugar
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"backports.cached_property"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python 3.8 functools.cached_property backport to python 3.6";
|
||||
homepage = "https://github.com/penguinolog/backports.cached_property";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ izorkin ];
|
||||
};
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, poetry, pythonOlder
|
||||
, click, backports-cached-property, graphql-core, pygments, python-dateutil, python-multipart, typing-extensions
|
||||
, aiohttp, asgiref, chalice, django, fastapi, flask, pydantic, sanic, starlette, uvicorn
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "strawberry-graphql";
|
||||
version = "0.125.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "strawberry-graphql";
|
||||
repo = "strawberry";
|
||||
rev = version;
|
||||
sha256 = "sha256-8ERmG10qNiYg9Zr8oUZk/Uz68sCE+oWrqmJ5kUMqbRo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click backports-cached-property graphql-core pygments python-dateutil python-multipart typing-extensions
|
||||
aiohttp asgiref chalice django fastapi flask pydantic sanic starlette uvicorn
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"strawberry"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A GraphQL library for Python that leverages type annotations";
|
||||
homepage = "https://strawberry.rocks";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ izorkin ];
|
||||
};
|
||||
}
|
@ -1185,6 +1185,8 @@ in {
|
||||
|
||||
backoff = callPackage ../development/python-modules/backoff { };
|
||||
|
||||
backports-cached-property = callPackage ../development/python-modules/backports-cached-property { };
|
||||
|
||||
backports_abc = callPackage ../development/python-modules/backports_abc { };
|
||||
|
||||
backports_csv = callPackage ../development/python-modules/backports_csv { };
|
||||
@ -10426,6 +10428,8 @@ in {
|
||||
|
||||
stravalib = callPackage ../development/python-modules/stravalib { };
|
||||
|
||||
strawberry-graphql = callPackage ../development/python-modules/strawberry-graphql { };
|
||||
|
||||
streamdeck = callPackage ../development/python-modules/streamdeck { };
|
||||
|
||||
streaming-form-data = callPackage ../development/python-modules/streaming-form-data { };
|
||||
|
Loading…
Reference in New Issue
Block a user