5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, flit-core
|
|
, installer
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "installer";
|
|
version = "0.7.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pypa";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-thHghU+1Alpay5r9Dc3v7ATRFfYKV8l9qR0nbGOOX/A=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
# We need to disable tests because this package is part of the bootstrap chain
|
|
# and its test dependencies cannot be built yet when this is being built.
|
|
doCheck = false;
|
|
|
|
passthru.tests = {
|
|
pytest = buildPythonPackage {
|
|
pname = "${pname}-pytest";
|
|
inherit version;
|
|
format = "other";
|
|
|
|
dontBuild = true;
|
|
dontInstall = true;
|
|
|
|
nativeCheckInputs = [
|
|
installer
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A low-level library for installing a Python package from a wheel distribution";
|
|
homepage = "https://github.com/pypa/installer";
|
|
changelog = "https://github.com/pypa/installer/blob/${src.rev}/docs/changelog.md";
|
|
license = licenses.mit;
|
|
maintainers = teams.python.members ++ [ maintainers.cpcloud ];
|
|
};
|
|
}
|