Files
nixpkgs/pkgs/development/python-modules/pyghmi/default.nix
2025-07-09 07:34:22 +00:00

59 lines
902 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
wheel,
cryptography,
python-dateutil,
six,
pbr,
coverage,
oslotest,
stestr,
}:
buildPythonPackage rec {
pname = "pyghmi";
version = "1.6.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-VCgUWUiPaCSZnmSar7e7SkI6cEw/hwv2bh5sfvTMmA0=";
};
build-system = [
pbr
setuptools
];
nativeCheckInputs = [
coverage
oslotest
stestr
];
dependencies = [
cryptography
python-dateutil
six
pbr
];
pythonImportsCheck = [ "pyghmi" ];
checkPhase = ''
runHook preCheck
stestr run
runHook postCheck
'';
meta = {
description = "Pure Python (mostly IPMI) server management library";
homepage = "https://opendev.org/x/pyghmi/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ codgician ];
};
}