depot/third_party/nixpkgs/pkgs/development/python-modules/python-ipmi/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

50 lines
895 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, mock
, nose
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-ipmi";
version = "0.5.4";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "kontron";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-IXEq3d1nXGEndciQw2MJ1Abc0vmEYez+k6aWGSWEzWA=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "version=version," "version='${version}',"
'';
propagatedBuildInputs = [
future
];
nativeCheckInputs = [
mock
nose
pytestCheckHook
];
pythonImportsCheck = [
"pyipmi"
];
meta = with lib; {
description = "Python IPMI Library";
homepage = "https://github.com/kontron/python-ipmi";
license = with licenses; [ lgpl2Plus ];
maintainers = with maintainers; [ fab ];
};
}