cb3813b7b6
The original problem with the normalization of the filename only occurred because it was in NFC. However, when trying to fix it by `mv`ing the file to a normalization-indifferent name, I used the NFD normalized name from my file system. This means it only works on normalizing file systems. The filename must be in the original encoding and will be normalized by normalizing file systems like HFS+.
57 lines
1.5 KiB
Nix
57 lines
1.5 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, bootstrapped-pip
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wheel";
|
|
version = "0.36.2";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pypa";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "13bj49psan1s1fxfrq613dm2l7jvrg2dpgb36lz81z3b1h7zig6j";
|
|
name = "${pname}-${version}-source";
|
|
extraPostFetch = ''
|
|
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://bitbucket.org/pypa/wheel/";
|
|
description = "A 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 ];
|
|
};
|
|
}
|