2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-07-27 06:49:29 +00:00
|
|
|
fetchurl,
|
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
six,
|
|
|
|
}:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-linux-procfs";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.7.3";
|
|
|
|
pyproject = true;
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
src = fetchurl {
|
2024-01-13 08:15:51 +00:00
|
|
|
url = "https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git/snapshot/python-linux-procfs-v${version}.tar.gz";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-6js8+PBqMwNYSe74zqZP8CZ5nt1ByjCWnex+wBY/LZU=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ six ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
# contains no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "procfs" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python classes to extract information from the Linux kernel /proc files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pflags";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|