1{ lib, buildPythonPackage, fetchPypi, isPy27
2, pytest, pytest-runner, pytestCheckHook }:
3
4buildPythonPackage rec {
5 version = "1.0.0";
6 pname = "ci-py";
7
8 disabled = isPy27;
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "12ax07n81vxbyayhwzi1q6x7gfmwmvrvwm1n4ii6qa6fqlp9pzj7";
13 };
14
15 nativeBuildInputs = [ pytest-runner ]; # pytest-runner included in setup-requires
16 checkInputs = [ pytest pytestCheckHook ];
17
18 pythonImportsCheck = [ "ci" ];
19
20 meta = with lib; {
21 description = "Library for working with Continuous Integration services";
22 homepage = "https://github.com/grantmcconnaughey/ci.py";
23 license = licenses.mit;
24 maintainers = with maintainers; [ bcdarwin ];
25 };
26}