nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 818 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "python-ipmi"; 11 version = "0.5.8"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "kontron"; 16 repo = "python-ipmi"; 17 tag = version; 18 hash = "sha256-9xPnLNyHKvVebRM/mIoEVzhT2EwmgJxCTztLSZrnXVc="; 19 }; 20 21 postPatch = '' 22 substituteInPlace setup.py \ 23 --replace-fail "version=version," "version='${version}'," 24 ''; 25 26 build-system = [ setuptools ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "pyipmi" ]; 31 32 meta = { 33 description = "Python IPMI Library"; 34 homepage = "https://github.com/kontron/python-ipmi"; 35 license = lib.licenses.lgpl2Plus; 36 maintainers = with lib.maintainers; [ fab ]; 37 mainProgram = "ipmitool.py"; 38 }; 39}