2020-06-16 22:14:04 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27, mock, pytest, isort }:
|
2018-04-07 12:20:00 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-isort";
|
2020-06-06 07:47:27 +01:00
|
|
|
version = "1.0.0";
|
2018-04-07 12:20:00 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:27 +01:00
|
|
|
sha256 = "758156cb4dc1db72adc1b7e253011f5eea117fab32af03cedb4cbfc6058b5f8f";
|
2018-04-07 12:20:00 +01:00
|
|
|
};
|
|
|
|
|
2019-03-11 11:42:15 +00:00
|
|
|
propagatedBuildInputs = [ isort ];
|
2018-04-07 12:20:00 +01:00
|
|
|
|
2020-06-16 22:14:04 +01:00
|
|
|
checkInputs = [ pytest ]
|
|
|
|
++ lib.optionals isPy27 [ mock ];
|
2019-03-11 11:42:15 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test -vs --cache-clear
|
|
|
|
'';
|
2018-04-07 12:20:00 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pytest plugin to perform isort checks (import ordering)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/moccu/pytest-isort/";
|
2018-04-07 12:20:00 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|