Files
nixpkgs/pkgs/development/python-modules/distlib/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

46 lines
893 B
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
setuptools,
}:
buildPythonPackage rec {
pname = "distlib";
version = "0.4.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-/uxAB1vgOgRQGpc9gfYzc1tLafmLBUUFkjEMD0AaTg0=";
};
nativeBuildInputs = [ setuptools ];
postFixup = lib.optionalString (!stdenv.hostPlatform.isWindows) ''
find $out -name '*.exe' -delete
'';
pythonImportsCheck = [
"distlib"
"distlib.database"
"distlib.locators"
"distlib.index"
"distlib.markers"
"distlib.metadata"
"distlib.util"
"distlib.resources"
];
# Tests use pypi.org.
doCheck = false;
meta = {
description = "Low-level components of distutils2/packaging";
homepage = "https://distlib.readthedocs.io";
license = lib.licenses.psfl;
maintainers = with lib.maintainers; [ lnl7 ];
};
}