mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
python3Packages.graphene-django: init at 3.0.0b7
This commit is contained in:
parent
8c7c19fdf3
commit
2a258f0692
2 changed files with 67 additions and 0 deletions
65
pkgs/development/python-modules/graphene-django/default.nix
Normal file
65
pkgs/development/python-modules/graphene-django/default.nix
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, fetchFromGitHub
|
||||||
|
|
||||||
|
, graphene
|
||||||
|
, graphql-core
|
||||||
|
, django
|
||||||
|
, djangorestframework
|
||||||
|
, promise
|
||||||
|
, text-unidecode
|
||||||
|
|
||||||
|
, django-filter
|
||||||
|
, mock
|
||||||
|
, pytest-django
|
||||||
|
, pytest-random-order
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "graphene-django";
|
||||||
|
version = "3.0.0b7";
|
||||||
|
format = "setuptools";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "graphql-python";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-uPc9HNcciQpCcHLYespK8ICny5jOQaliFMyd2Yt6/as=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace '"pytest-runner"' ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
djangorestframework
|
||||||
|
graphene
|
||||||
|
graphql-core
|
||||||
|
django
|
||||||
|
promise
|
||||||
|
text-unidecode
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export DJANGO_SETTINGS_MODULE=examples.django_test_settings
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
django-filter
|
||||||
|
mock
|
||||||
|
pytest-django
|
||||||
|
pytest-random-order
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Integrate GraphQL into your Django project";
|
||||||
|
homepage = "https://github.com/graphql-python/graphene-django";
|
||||||
|
licenses = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ hexa ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -3283,6 +3283,8 @@ in {
|
||||||
|
|
||||||
graphene = callPackage ../development/python-modules/graphene { };
|
graphene = callPackage ../development/python-modules/graphene { };
|
||||||
|
|
||||||
|
graphene-django = callPackage ../development/python-modules/graphene-django { };
|
||||||
|
|
||||||
graphqlclient= callPackage ../development/python-modules/graphqlclient { };
|
graphqlclient= callPackage ../development/python-modules/graphqlclient { };
|
||||||
|
|
||||||
graphql-core = callPackage ../development/python-modules/graphql-core { };
|
graphql-core = callPackage ../development/python-modules/graphql-core { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue