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

buildPythonPackage rec {
  pname = "nose_warnings_filters";
  version = "0.1.5";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "17dvfqfy2fm7a5cmiffw2dc3064kpx72fn5mlw01skm2rhn5nv25";
  };

  disabled = !isPy3k;

  propagatedBuildInputs = [ nose ];

  nativeCheckInputs = [ nose ];
  checkPhase = ''
    nosetests -v
  '';

  meta = {
    description = "Allow injecting warning filters during nosetest";
    homepage = "https://github.com/Carreau/nose_warnings_filters";
    license = lib.licenses.mit;
  };
}