aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/ci-py/default.nix
blob: 30220b48b72dae5b2c4e151a55513ef5312bec7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, buildPythonPackage, fetchPypi, isPy27
, pytest, pytestrunner, pytestCheckHook }:

buildPythonPackage rec {
  version = "1.0.0";
  pname = "ci-py";

  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "12ax07n81vxbyayhwzi1q6x7gfmwmvrvwm1n4ii6qa6fqlp9pzj7";
  };

  nativeBuildInputs = [ pytestrunner ];  # pytest-runner included in setup-requires
  checkInputs = [ pytest pytestCheckHook ];

  pythonImportsCheck = [ "ci" ];

  meta = with lib; {
    description = "Library for working with Continuous Integration services";
    homepage = "https://github.com/grantmcconnaughey/ci.py";
    license = licenses.mit;
    maintainers = with maintainers; [ bcdarwin ];
  };
}