nixpkgs/pkgs/development/python-modules/nose_warnings_filters/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

31 lines
549 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, nose
}:
buildPythonPackage rec {
pname = "nose_warnings_filters";
version = "0.1.5";
src = fetchPypi {
inherit pname version;
sha256 = "17dvfqfy2fm7a5cmiffw2dc3064kpx72fn5mlw01skm2rhn5nv25";
};
disabled = !isPy3k;
propagatedBuildInputs = [ nose ];
checkPhase = ''
nosetests -v
'';
meta = {
description = "Allow injecting warning filters during nosetest";
homepage = https://github.com/Carreau/nose_warnings_filters;
license = lib.licenses.mit;
};
}