1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6}:
7
8buildPythonPackage rec {
9 pname = "wheel";
10 version = "0.43.0";
11 format = "pyproject";
12
13 src = fetchFromGitHub {
14 owner = "pypa";
15 repo = pname;
16 rev = "refs/tags/${version}";
17 hash = "sha256-cATYN7GtS1l3GxcqBl95RsBTuszWoFB9CtuRgUSL0/A=";
18 postFetch = ''
19 cd $out
20 mv tests/testdata/unicode.dist/unicodedist/åäö_日本語.py \
21 tests/testdata/unicode.dist/unicodedist/æɐø_日本價.py
22 patch -p1 < ${./0001-tests-Rename-a-a-o-_-.py-_-.py.patch}
23 '';
24 };
25
26 nativeBuildInputs = [ flit-core ];
27
28 # No tests in archive
29 doCheck = false;
30
31 pythonImportsCheck = [ "wheel" ];
32
33 meta = with lib; {
34 homepage = "https://github.com/pypa/wheel";
35 description = "Built-package format for Python";
36 mainProgram = "wheel";
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}