about summary refs log tree commit diff
path: root/pkgs/development/python-modules/devtools/default.nix
blob: fdb240dde84278b8c4aeba8b4756cd996a2d70b6 (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
{ buildPythonPackage, pythonOlder, fetchFromGitHub, lib, pygments
, pytestCheckHook, pytest-mock }:

buildPythonPackage rec {
  pname = "devtools";
  version = "0.8.0";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "samuelcolvin";
    repo = "python-${pname}";
    rev = "v${version}";
    sha256 = "0yavcbxzxi1nfa1k326gsl03y8sadi5z5acamwd8b1bsiv15p757";
  };

  propagatedBuildInputs = [ pygments ];

  checkInputs = [ pytestCheckHook pytest-mock ];

  pythonImportsCheck = [ "devtools" ];

  meta = with lib; {
    description = "Python's missing debug print command and other development tools";
    homepage = "https://python-devtools.helpmanual.io/";
    license = licenses.mit;
    maintainers = with maintainers; [ jdahm ];
  };
}