about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mockito/default.nix
blob: 981665f7b03a4d86088d6196b84ed9b4de78bbc0 (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
{ lib, buildPythonPackage, fetchPypi, isPy3k, funcsigs, pytest, numpy }:

buildPythonPackage rec {
  version = "1.4.0";
  pname = "mockito";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-QJq2BMnr4bt9wY7GsO2YqK1RJ7CCc/WASyL00bUeUiI=";
  };

  propagatedBuildInputs = lib.optionals (!isPy3k) [ funcsigs ];
  nativeCheckInputs = [ pytest numpy ];

  # tests are no longer packaged in pypi tarball
  doCheck = false;
  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "Spying framework";
    homepage = "https://github.com/kaste/mockito-python";
    license = licenses.mit;
    maintainers = [ maintainers.marsam ];
  };
}