nixpkgs/pkgs/development/python-modules/pytest-isort/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
614 B
Nix
Raw Normal View History

2020-06-16 21:14:04 +00:00
{ lib, buildPythonPackage, fetchPypi, isPy27, mock, pytest, isort }:
buildPythonPackage rec {
pname = "pytest-isort";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-T+Sybq0q93ZzDsI/WHDXQh81qs4ipBxOk4WG702Hh8s=";
};
propagatedBuildInputs = [ isort ];
2020-06-16 21:14:04 +00:00
checkInputs = [ pytest ]
++ lib.optionals isPy27 [ mock ];
checkPhase = ''
py.test -vs --cache-clear
'';
meta = with lib; {
description = "Pytest plugin to perform isort checks (import ordering)";
homepage = "https://github.com/moccu/pytest-isort/";
license = licenses.bsd3;
};
}