diff --git a/pkgs/development/python-modules/python-linux-procfs/default.nix b/pkgs/development/python-modules/python-linux-procfs/default.nix new file mode 100644 index 000000000000..702be64075ae --- /dev/null +++ b/pkgs/development/python-modules/python-linux-procfs/default.nix @@ -0,0 +1,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}"; + sha256 = "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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c192dd109791..8dd16275f2aa 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6929,6 +6929,8 @@ in { python-Levenshtein = callPackage ../development/python-modules/python-levenshtein { }; + python-linux-procfs = callPackage ../development/python-modules/python-linux-procfs { }; + python-logstash = callPackage ../development/python-modules/python-logstash { }; python-ly = callPackage ../development/python-modules/python-ly { };