mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-25 01:11:05 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
42 lines
734 B
Nix
42 lines
734 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, future
|
|
, mock
|
|
, nose
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-ipmi";
|
|
version = "0.5.3";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kontron";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-Y8HJ7MXYHJRUWPTcw8p+GGSFswuRI7u+/bIaJpKy7lY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|