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