1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "teamcity-messages";
11 version = "1.32";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "JetBrains";
18 repo = pname;
19 rev = "v${version}";
20 hash = "sha256-9az7kD7nKqMF2b3/eFgF+pOKKIYLvTy2sf4TSJfHRnA=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pytestFlagsArray = [ "tests/unit-tests/" ];
26
27 pythonImportsCheck = [ "teamcity" ];
28
29 meta = with lib; {
30 description = "Python unit test reporting to TeamCity";
31 homepage = "https://github.com/JetBrains/teamcity-messages";
32 license = licenses.asl20;
33 maintainers = with maintainers; [ fab ];
34 };
35}