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