about summary refs log tree commit diff
path: root/pkgs/development/python-modules/minimock/default.nix
blob: 63e8ef0b37781bfaa1ec333bd4328e31a21b8d45 (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
36
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "minimock";
  version = "1.3.0";
  format = "pyproject";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "lowks";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-Ut3iKc7Sr28uGgWCV3K3CS+gBta2icvbUPMjjo4fflU=";
  };

  nativeBuildInputs = [ setuptools ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "minimock" ];

  meta = with lib; {
    description = "Minimalistic mocking library";
    homepage = "https://pypi.python.org/pypi/MiniMock";
    license = licenses.mit;
    maintainers = with maintainers; [ drewrisinger ];
  };
}