summary refs log tree commit diff
path: root/pkgs/development/python-modules/flexmock/default.nix
blob: b80aafe3bf2c7f0a3bdc0829aea8027b8a2f526d (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.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "fe95c8727f4db73dc8f2f7b4548bffe7992440a965fefd60da291abda5352c2b";
  };

  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;
  };
}