1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, pytestCheckHook
6, flit-core
7, mock
8}:
9
10buildPythonPackage rec {
11 pname = "installer";
12 version = "0.7.0";
13 format = "pyproject";
14
15 src = fetchFromGitHub {
16 owner = "pradyunsg";
17 repo = pname;
18 rev = version;
19 hash = "sha256-thHghU+1Alpay5r9Dc3v7ATRFfYKV8l9qR0nbGOOX/A=";
20 };
21
22 nativeBuildInputs = [ flit-core ];
23
24 nativeCheckInputs = [
25 pytestCheckHook
26 mock
27 ];
28
29 meta = with lib; {
30 changelog = "https://github.com/pypa/installer/blob/${src.rev}/docs/changelog.md";
31 homepage = "https://github.com/pradyunsg/installer";
32 description = "A low-level library for installing a Python package from a wheel distribution";
33 license = licenses.mit;
34 maintainers = with maintainers; [ cpcloud fridh ];
35 };
36}