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

buildPythonPackage rec {
  version = "0.1.3";
  pname = "forbiddenfruit";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1188a07cc24a9bd2c529dad06490b80a6fc88cde968af4d7861da81686b2cc8c";
  };

  checkInputs = [ nose ];

  checkPhase = ''
    find ./build -name '*.so' -exec mv {} tests/unit \;
    nosetests
  '';

  meta = with lib; {
    description = "Patch python built-in objects";
    homepage = "https://pypi.python.org/pypi/forbiddenfruit";
    license = licenses.mit;
  };

}