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

Merge pull request #227767 from fabaff/python-ipmi-fix

python311Packages.python-ipmi: fix invalid specifier
parents 98df5a75 b32e668a
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -11,15 +11,22 @@
buildPythonPackage rec {
  pname = "python-ipmi";
  version = "0.5.4";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "kontron";
    repo = pname;
    rev = version;
    rev = "refs/tags/${version}";
    hash = "sha256-IXEq3d1nXGEndciQw2MJ1Abc0vmEYez+k6aWGSWEzWA=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "version=version," "version='${version}',"
  '';

  propagatedBuildInputs = [
    future
  ];
@@ -30,7 +37,9 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  pythonImportsCheck = [ "pyipmi" ];
  pythonImportsCheck = [
    "pyipmi"
  ];

  meta = with lib; {
    description = "Python IPMI Library";