python311Packages.python-ipmi: refactor
This commit is contained in:
parent
88e1b367da
commit
af835f1909
1 changed files with 8 additions and 5 deletions
|
@ -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
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue