Unverified Commit d76fb6f2 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python311Packages.gremlinpython: disable on unsupported Python releases

- add format
parent 073eb593
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
, isodate
, nest-asyncio
, pytestCheckHook
, pythonOlder
, mock
, pyhamcrest
, radish-bdd
@@ -15,12 +16,14 @@
buildPythonPackage rec {
  pname = "gremlinpython";
  version = "3.6.3";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  # pypi tarball doesn't include tests
  src = fetchFromGitHub {
    owner = "apache";
    repo = "tinkerpop";
    rev = version;
    rev = "refs/tags/${version}";
    hash = "sha256-CmVWaRebJaZHJGzhaBdYXPF3BZ8+Cvc5P/KOpsG+dX4=";
  };

@@ -30,7 +33,6 @@ buildPythonPackage rec {
    sed -i '/pytest-runner/d' setup.py

    substituteInPlace setup.py \
      --replace 'aiohttp>=3.8.0,<=3.8.1' 'aiohttp' \
      --replace 'importlib-metadata<5.0.0' 'importlib-metadata' \
      --replace "os.getenv('VERSION', '?').replace('-SNAPSHOT', '.dev-%d' % timestamp)" '"${version}"'
  '';