1{
2 lib,
3 buildPythonPackage,
4 fetchurl,
5 setuptools,
6 six,
7}:
8
9buildPythonPackage rec {
10 pname = "python-linux-procfs";
11 version = "0.7.3";
12 pyproject = true;
13
14 src = fetchurl {
15 url = "https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git/snapshot/python-linux-procfs-v${version}.tar.gz";
16 hash = "sha256-6js8+PBqMwNYSe74zqZP8CZ5nt1ByjCWnex+wBY/LZU=";
17 };
18
19 build-system = [ setuptools ];
20
21 dependencies = [ six ];
22
23 # contains no tests
24 doCheck = false;
25 pythonImportsCheck = [ "procfs" ];
26
27 meta = with lib; {
28 description = "Python classes to extract information from the Linux kernel /proc files";
29 mainProgram = "pflags";
30 homepage = "https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git/";
31 license = licenses.gpl2Plus;
32 };
33}