summary refs log tree commit diff
path: root/pkgs/development/python-modules/flexmock/default.nix
blob: f1a0efc071398702c18b8f3a84efb3bd327341bd (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
{ lib
, buildPythonPackage
, fetchPypi
, pytest
}:

buildPythonPackage rec {
  pname = "flexmock";
  version = "0.10.3";

  src = fetchPypi {
    inherit pname version;
    sha256 = "031c624pdqm7cc0xh4yz5k69gqxn2bbrjz13s17684q5shn0ik21";
  };

  checkInputs = [ pytest ];
  checkPhase = ''
    py.test
  '';

  meta = with lib; {
    description = "flexmock is a testing library for Python that makes it easy to create mocks,stubs and fakes.";
    homepage = http://flexmock.readthedocs.org;
    license = licenses.bsdOriginal;
  };
}