1{ lib, buildPythonPackage, fetchPypi, pytest, isort }:
2
3buildPythonPackage rec {
4 pname = "pytest-isort";
5 version = "0.3.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "4bfee60dad1870b51700d55a85f5ceda766bd9d3d2878c1bbabee80e61b1be1a";
10 };
11
12 propagatedBuildInputs = [ isort ];
13
14 checkInputs = [ pytest ];
15
16 checkPhase = ''
17 py.test -vs --cache-clear
18 '';
19
20 meta = with lib; {
21 description = "Pytest plugin to perform isort checks (import ordering)";
22 homepage = https://github.com/moccu/pytest-isort/;
23 license = licenses.bsd3;
24 };
25}