summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-linux-procfs/default.nix
blob: 4c025b1add9cfaaf9d3dc1140c1e4c4ba43ffc1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, buildPythonPackage, fetchgit, six }:

buildPythonPackage rec {
  pname = "python-linux-procfs";
  version = "0.6.3";

  src = fetchgit {
    url = "https://git.kernel.org/pub/scm/libs/python/${pname}/${pname}.git";
    rev = "v${version}";
    hash = "sha256-PPgMlL9oj4HYUsr444ZrGo1LSZBl9hL5SE98IASUpbc=";
  };

  propagatedBuildInputs = [ six ];

  # contains no tests
  doCheck = false;
  pythonImportsCheck = [ "procfs" ];

  meta = with lib; {
    description = "Python classes to extract information from the Linux kernel /proc files";
    homepage = "https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git/";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ elohmeier ];
  };
}