about summary refs log tree commit diff
path: root/pkgs/development/python-modules/coverage/default.nix
blob: 4e4c86ae10634fd0c33fb28cfcd0c1c8d9973f8f (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchPypi
, mock
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "coverage";
  version = "7.4.3";
  pyproject = true;

  # uses f strings
  disabled = pythonOlder "3.5";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-J29gd6XGFEekjRM+0T51nAnmKv8NyEJ0po3BhmAQTVI=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  # No tests in archive
  doCheck = false;
  nativeCheckInputs = [ mock ];

  meta = {
    description = "Code coverage measurement for python";
    homepage = "https://coverage.readthedocs.io/";
    license = lib.licenses.bsd3;
  };
}