about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/fudge/default.nix
blob: 3f53b66d1efa42b92b5bffc1b6e7be0948eb3f3a (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
{ lib, stdenv
, buildPythonPackage
, fetchPypi
, nose
, isPy3k
}:

buildPythonPackage rec {
  pname = "fudge";
  version = "1.1.1";
  disabled = isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "1p7g6hv9qxscbzjv2n5pczpkkp55mp3s56adfc912w9qpf3rv4nr";
  };

  checkInputs = [ nose ];

  checkPhase = ''
    nosetests -v
  '';

  meta = with lib; {
    homepage = "https://github.com/fudge-py/fudge";
    description = "Replace real objects with fakes (mocks, stubs, etc) while testing";
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
  };

}