Use `(enabled|disabled)(TestPaths|TestMarks|Tests)` and `pytestFlags` instead of the `__structuredAttrs`-incompatible `pytestFlagsArray`.
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  lib,
 | 
						|
  buildPythonPackage,
 | 
						|
  fetchFromGitHub,
 | 
						|
  poetry-core,
 | 
						|
  pytest-benchmark,
 | 
						|
  pytest-asyncio,
 | 
						|
  pytestCheckHook,
 | 
						|
  pythonOlder,
 | 
						|
}:
 | 
						|
 | 
						|
buildPythonPackage rec {
 | 
						|
  pname = "graphql-core";
 | 
						|
  version = "3.2.5";
 | 
						|
  pyproject = true;
 | 
						|
 | 
						|
  disabled = pythonOlder "3.6";
 | 
						|
 | 
						|
  src = fetchFromGitHub {
 | 
						|
    owner = "graphql-python";
 | 
						|
    repo = "graphql-core";
 | 
						|
    tag = "v${version}";
 | 
						|
    hash = "sha256-xZOiQOFWnImDXuvHP9V6BDjIZwlwHSxN/os+UYV4A0M=";
 | 
						|
  };
 | 
						|
 | 
						|
  postPatch = ''
 | 
						|
    substituteInPlace pyproject.toml \
 | 
						|
      --replace-fail "poetry_core>=1,<2" "poetry-core" \
 | 
						|
      --replace-fail ', "setuptools>=59,<70"' ""
 | 
						|
  '';
 | 
						|
 | 
						|
  build-system = [
 | 
						|
    poetry-core
 | 
						|
  ];
 | 
						|
 | 
						|
  nativeCheckInputs = [
 | 
						|
    pytest-asyncio
 | 
						|
    pytest-benchmark
 | 
						|
    pytestCheckHook
 | 
						|
  ];
 | 
						|
 | 
						|
  pytestFlags = [ "--benchmark-disable" ];
 | 
						|
 | 
						|
  pythonImportsCheck = [ "graphql" ];
 | 
						|
 | 
						|
  meta = with lib; {
 | 
						|
    changelog = "https://github.com/graphql-python/graphql-core/releases/tag/v${version}";
 | 
						|
    description = "Port of graphql-js to Python";
 | 
						|
    homepage = "https://github.com/graphql-python/graphql-core";
 | 
						|
    license = licenses.mit;
 | 
						|
    maintainers = with maintainers; [ kamadorueda ];
 | 
						|
  };
 | 
						|
}
 |