2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-10-09 19:29:22 +00:00
|
|
|
, flit-core
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wheel";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.43.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pypa";
|
|
|
|
repo = pname;
|
2024-01-13 08:15:51 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-cATYN7GtS1l3GxcqBl95RsBTuszWoFB9CtuRgUSL0/A=";
|
2022-06-16 17:23:12 +00:00
|
|
|
postFetch = ''
|
2021-12-26 17:43:05 +00:00
|
|
|
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}
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
nativeBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
flit-core
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
pythonImportsCheck = [ "wheel" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/pypa/wheel";
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "A built-package format for Python";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "wheel";
|
2020-08-20 17:08:02 +00:00
|
|
|
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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|