1{ lib, buildPythonPackage, isPy27, fetchPypi, pytest, pytestCheckHook }:
2
3buildPythonPackage rec {
4 version = "0.3.0";
5 pname = "ci-info";
6
7 disabled = isPy27;
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "sha256-H9UMvUAfKa3/7rGLBIniMtFqwadFisa8MW3qtq5TX7A=";
12 };
13
14 checkInputs = [ pytest pytestCheckHook ];
15
16 doCheck = false; # both tests access network
17
18 pythonImportsCheck = [ "ci_info" ];
19
20 meta = with lib; {
21 description = "Gather continuous integration information on the fly";
22 homepage = "https://github.com/mgxd/ci-info";
23 license = licenses.mit;
24 maintainers = with maintainers; [ bcdarwin ];
25 };
26}