Merge pull request #185838 from Izorkin/init-strawberry

This commit is contained in:
Sandro 2022-08-18 23:51:57 +02:00 committed by GitHub
commit 7fa7b92d99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 89 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}

View File

@ -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 { };