depot/third_party/nixpkgs/pkgs/development/python-modules/graphene/default.nix

51 lines
915 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, aniso8601
, iso8601
, graphql-core
, graphql-relay
, pytestCheckHook
, pytest-asyncio
, pytest-benchmark
, pytest-mock
, pytz
, snapshottest
}:
buildPythonPackage rec {
pname = "graphene";
version = "3.0.0b6";
src = fetchFromGitHub {
owner = "graphql-python";
repo = "graphene";
rev = "v${version}";
sha256 = "1q6qmyc4jbi9cws4d98x7bgi7gppd09dmzijkb19fwbh4giy938r";
};
propagatedBuildInputs = [
aniso8601
graphql-core
graphql-relay
];
checkInputs = [
pytestCheckHook
pytest-asyncio
pytest-benchmark
pytest-mock
pytz
snapshottest
];
pythonImportsCheck = [ "graphene" ];
meta = with lib; {
description = "GraphQL Framework for Python";
homepage = "https://github.com/graphql-python/graphene";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}