Files
nixpkgs/pkgs/development/python2-modules/wheel/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

59 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
bootstrapped-pip,
setuptools,
}:
buildPythonPackage rec {
pname = "wheel";
version = "0.37.1";
format = "other";
src = fetchFromGitHub {
owner = "pypa";
repo = pname;
rev = version;
sha256 = "sha256-JlTmUPY3yo/uROyd3nW1dJa23zbLhgQTwcmqZkPOrHs=";
name = "${pname}-${version}-source";
postFetch = ''
cd $out
mv tests/testdata/unicode.dist/unicodedist/åäö_.py \
tests/testdata/unicode.dist/unicodedist/æɐø_.py
patch -p1 < ${./0001-tests-Rename-a-a-o-_-.py-_-.py.patch}
'';
};
nativeBuildInputs = [
bootstrapped-pip
setuptools
];
# No tests in archive
doCheck = false;
pythonImportsCheck = [ "wheel" ];
# We add this flag to ignore the copy installed by bootstrapped-pip
pipInstallFlags = [ "--ignore-installed" ];
meta = {
homepage = "https://github.com/pypa/wheel";
description = "Built-package format for Python";
longDescription = ''
This library is the reference implementation of the Python wheel packaging standard,
as defined in PEP 427.
It has two different roles:
- A setuptools extension for building wheels that provides the bdist_wheel setuptools command
- A command line tool for working with wheel files
It should be noted that wheel is not intended to be used as a library,
and as such there is no stable, public API.
'';
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ siriobalmelli ];
};
}