2020-02-09 14:47:03 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
|
|
|
|
, coveralls
|
|
|
|
, promise
|
|
|
|
, pytest
|
|
|
|
, pytest-benchmark
|
|
|
|
, pytest-mock
|
|
|
|
, rx
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphql-core";
|
2020-07-06 23:50:56 +01:00
|
|
|
version = "3.1.2";
|
2020-02-09 14:47:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "graphql-python";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-07-06 23:50:56 +01:00
|
|
|
sha256 = "0kvbj9dwpx8mjfj86kqx54dbz9k72ki147ssyj0ca2syvb8jm3wb";
|
2020-02-09 14:47:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
promise
|
|
|
|
rx
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
coveralls
|
|
|
|
pytest
|
|
|
|
pytest-benchmark
|
|
|
|
pytest-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = "pytest";
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace 'pytest-mock==1.2' 'pytest-mock==1.13.0' \
|
|
|
|
--replace 'pytest-benchmark==3.0.0' 'pytest-benchmark==3.2.2'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Port of graphql-js to Python";
|
|
|
|
homepage = "https://github.com/graphql-python/graphql-core";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
kamadorueda
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|