667d42c00d
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
--argstr baseRev 57b193d8dd
result/bin/apply-formatting $NIXPKGS_PATH
59 lines
1.5 KiB
Nix
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 = with lib; {
|
|
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 licenses; [ mit ];
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
|
};
|
|
}
|