Files
nixpkgs/pkgs/development/python-modules/python-linux-procfs/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

34 lines
829 B
Nix

{
lib,
buildPythonPackage,
fetchurl,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "python-linux-procfs";
version = "0.7.3";
pyproject = true;
src = fetchurl {
url = "https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git/snapshot/python-linux-procfs-v${version}.tar.gz";
hash = "sha256-6js8+PBqMwNYSe74zqZP8CZ5nt1ByjCWnex+wBY/LZU=";
};
build-system = [ setuptools ];
dependencies = [ six ];
# contains no tests
doCheck = false;
pythonImportsCheck = [ "procfs" ];
meta = {
description = "Python classes to extract information from the Linux kernel /proc files";
mainProgram = "pflags";
homepage = "https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git/";
license = lib.licenses.gpl2Plus;
};
}