2019-03-11 12:42:15 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest, isort }:
|
2018-04-07 13:20:00 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-isort";
|
2019-03-11 12:42:15 +01:00
|
|
|
version = "0.3.1";
|
2018-04-07 13:20:00 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-03-11 12:42:15 +01:00
|
|
|
sha256 = "4bfee60dad1870b51700d55a85f5ceda766bd9d3d2878c1bbabee80e61b1be1a";
|
2018-04-07 13:20:00 +02:00
|
|
|
};
|
|
|
|
|
2019-03-11 12:42:15 +01:00
|
|
|
propagatedBuildInputs = [ isort ];
|
2018-04-07 13:20:00 +02:00
|
|
|
|
2019-03-11 12:42:15 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test -vs --cache-clear
|
|
|
|
'';
|
2018-04-07 13:20:00 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pytest plugin to perform isort checks (import ordering)";
|
|
|
|
homepage = https://github.com/moccu/pytest-isort/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|