Unverified Commit 8405a97c authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python3Packages.aurorapy: drop future dependency

Fixes the build on Python 3.13.
parent 883c69cf
Loading
Loading
Loading
Loading
+9 −10
Original line number Diff line number Diff line
@@ -2,10 +2,8 @@
  lib,
  buildPythonPackage,
  fetchFromGitLab,
  future,
  pyserial,
  pytestCheckHook,
  pythonOlder,
  setuptools,
  six,
}:
@@ -13,9 +11,7 @@
buildPythonPackage rec {
  pname = "aurorapy";
  version = "0.2.7";
  format = "pyproject";

  disabled = pythonOlder "3.7";
  pyproject = true;

  src = fetchFromGitLab {
    owner = "energievalsabbia";
@@ -24,12 +20,15 @@ buildPythonPackage rec {
    hash = "sha256-rGwfGq3zdoG9NCGqVN29Q4bWApk5B6CRdsW9ctWgOec=";
  };

  nativeBuildInputs = [ setuptools ];
  postPatch = ''
    sed -i "/from past.builtins import map/d" aurorapy/client.py
  '';

  propagatedBuildInputs = [
    future
    pyserial
  ];
  build-system = [ setuptools ];

  pythonRemoveDeps = [ "future" ];

  dependencies = [ pyserial ];

  nativeCheckInputs = [
    pytestCheckHook