1{ lib 2, buildPythonPackage 3, dmidecode 4, fetchPypi 5, poetry-core 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "py-dmidecode"; 11 version = "0.1.2"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchPypi { 17 pname = "py_dmidecode"; 18 inherit version; 19 hash = "sha256-nMy/jOlg7yUPfGF27MN0NyVM0vuTIBuJTV2GKNP13UA="; 20 }; 21 22 nativeBuildInputs = [ 23 poetry-core 24 ]; 25 26 propagatedBuildInputs = [ 27 dmidecode 28 ]; 29 30 # Module has no tests 31 doCheck = false; 32 33 pythonImportsCheck = [ 34 "dmidecode" 35 ]; 36 37 meta = with lib; { 38 description = "Python library that parses the output of dmidecode"; 39 homepage = "https://github.com/zaibon/py-dmidecode/"; 40 changelog = "https://github.com/zaibon/py-dmidecode/releases/tag/v${version}"; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ davidtwco ]; 43 platforms = platforms.linux; 44 }; 45}