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