mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-20 15:00:35 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
36 lines
721 B
Nix
36 lines
721 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, flit-core
|
|
, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "installer";
|
|
version = "0.6.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pradyunsg";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-IXznSrc/4LopgZDGFSC6cAOCbts+siKpdl5SvN1FFvA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
mock
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/pradyunsg/installer";
|
|
description = "A low-level library for installing a Python package from a wheel distribution.";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ cpcloud fridh ];
|
|
};
|
|
}
|