depot/third_party/nixpkgs/pkgs/development/python-modules/wheel/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

52 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
}:
buildPythonPackage rec {
pname = "wheel";
version = "0.43.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "pypa";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-cATYN7GtS1l3GxcqBl95RsBTuszWoFB9CtuRgUSL0/A=";
postFetch = ''
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 = [ flit-core ];
# No tests in archive
doCheck = false;
pythonImportsCheck = [ "wheel" ];
meta = with lib; {
homepage = "https://github.com/pypa/wheel";
description = "Built-package format for Python";
mainProgram = "wheel";
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 ];
};
}