python311Packages.python-ipmi: refactor

This commit is contained in:
Fabian Affolter 2024-03-07 09:42:34 +01:00 committed by GitHub
parent 88e1b367da
commit af835f1909
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,37 +3,40 @@
, fetchFromGitHub
, future
, mock
, nose
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "python-ipmi";
version = "0.5.5";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kontron";
repo = pname;
repo = "python-ipmi";
rev = "refs/tags/${version}";
hash = "sha256-G5FcFHtyN8bXMjj/yfJgzcfmV1mxQ9lu3GM3XMeTWVU=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "version=version," "version='${version}',"
--replace-fail "version=version," "version='${version}',"
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
future
];
nativeCheckInputs = [
mock
nose
pytestCheckHook
];