2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, dmidecode
|
|
|
|
, fetchPypi
|
|
|
|
, poetry-core
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-dmidecode";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.1.3";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-07-15 17:15:38 +00:00
|
|
|
pname = "py_dmidecode";
|
|
|
|
inherit version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-pS1fRWuWLnXuNEGYXU/j1njC8THWQOHbnVOF9+c13Cw=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dmidecode
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# Module has no tests
|
2021-05-20 23:08:51 +00:00
|
|
|
doCheck = false;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dmidecode"
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library that parses the output of dmidecode";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/zaibon/py-dmidecode/";
|
|
|
|
changelog = "https://github.com/zaibon/py-dmidecode/releases/tag/v${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ davidtwco ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|