nixpkgs/pkgs/development/python-modules/ci-info/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
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.
2023-01-21 12:00:00 +00:00

27 lines
654 B
Nix

{ lib, buildPythonPackage, isPy27, fetchPypi, pytest, pytestCheckHook }:
buildPythonPackage rec {
version = "0.3.0";
pname = "ci-info";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-H9UMvUAfKa3/7rGLBIniMtFqwadFisa8MW3qtq5TX7A=";
};
nativeCheckInputs = [ pytest pytestCheckHook ];
doCheck = false; # both tests access network
pythonImportsCheck = [ "ci_info" ];
meta = with lib; {
description = "Gather continuous integration information on the fly";
homepage = "https://github.com/mgxd/ci-info";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}