summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-pytestrail/default.nix
blob: a44cae806fe5ec100c4000ce7c9047ec93beae64 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools-scm,
  pytest,
  testrail-api,
}:

buildPythonPackage rec {
  pname = "pytest-pytestrail";
  version = "0.10.5";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "tolstislon";
    repo = "pytest-pytestrail";
    rev = version;
    sha256 = "sha256-y34aRxQ8mu6b6GBRMFVzn1shMVc7TumdjRS3daMEZJM=";
  };

  nativeBuildInputs = [ setuptools-scm ];

  buildInputs = [ pytest ];

  propagatedBuildInputs = [ testrail-api ];

  # all tests require network access
  doCheck = false;

  pythonImportsCheck = [ "pytest_pytestrail" ];

  meta = {
    description = "Pytest plugin for interaction with TestRail";
    homepage = "https://github.com/tolstislon/pytest-pytestrail";
    changelog = "https://github.com/tolstislon/pytest-pytestrail/releases/tag/${version}";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ aanderse ];
  };
}