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