26 lines
614 B
Nix
26 lines
614 B
Nix
{ 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 ];
|
|
|
|
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;
|
|
};
|
|
}
|