1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 bootstrapped-pip,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "wheel";
11 version = "0.37.1";
12 format = "other";
13
14 src = fetchFromGitHub {
15 owner = "pypa";
16 repo = pname;
17 rev = version;
18 sha256 = "sha256-JlTmUPY3yo/uROyd3nW1dJa23zbLhgQTwcmqZkPOrHs=";
19 name = "${pname}-${version}-source";
20 postFetch = ''
21 cd $out
22 mv tests/testdata/unicode.dist/unicodedist/åäö_日本語.py \
23 tests/testdata/unicode.dist/unicodedist/æɐø_日本價.py
24 patch -p1 < ${./0001-tests-Rename-a-a-o-_-.py-_-.py.patch}
25 '';
26 };
27
28 nativeBuildInputs = [
29 bootstrapped-pip
30 setuptools
31 ];
32
33 # No tests in archive
34 doCheck = false;
35 pythonImportsCheck = [ "wheel" ];
36
37 # We add this flag to ignore the copy installed by bootstrapped-pip
38 pipInstallFlags = [ "--ignore-installed" ];
39
40 meta = with lib; {
41 homepage = "https://github.com/pypa/wheel";
42 description = "Built-package format for Python";
43 longDescription = ''
44 This library is the reference implementation of the Python wheel packaging standard,
45 as defined in PEP 427.
46
47 It has two different roles:
48
49 - A setuptools extension for building wheels that provides the bdist_wheel setuptools command
50 - A command line tool for working with wheel files
51
52 It should be noted that wheel is not intended to be used as a library,
53 and as such there is no stable, public API.
54 '';
55 license = with licenses; [ mit ];
56 maintainers = with maintainers; [ siriobalmelli ];
57 };
58}