about summary refs log tree commit diff
path: root/pkgs/development/python-modules/minimock/default.nix
blob: 5bd48301e8ec1536911a6c6609bb5a94791043d0 (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
37
38
39
{ 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 = "A minimalistic mocking library";
    homepage = "https://pypi.python.org/pypi/MiniMock";
    license = licenses.mit;
    maintainers = with maintainers; [ drewrisinger ];
  };
}