Files
nixpkgs/pkgs/development/python-modules/distro/default.nix
T
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

33 lines
662 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
setuptools,
}:
buildPythonPackage rec {
pname = "distro";
version = "1.9.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-L6d8b9iUDxFu4da5Si+QsTteqNAZuYvIuv3KvN2b2+0=";
};
nativeBuildInputs = [ setuptools ];
# tests are very targeted at individual linux distributions
doCheck = false;
pythonImportsCheck = [ "distro" ];
meta = {
homepage = "https://github.com/nir0s/distro";
description = "Linux Distribution - a Linux OS platform information API";
mainProgram = "distro";
license = lib.licenses.asl20;
maintainers = [ ];
};
}