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

27 lines
627 B
Nix
Raw Normal View History

2020-06-16 14:14:04 -07:00
{ lib, buildPythonPackage, fetchPypi, isPy27, mock, pytest, isort }:
2018-04-07 13:20:00 +02:00
buildPythonPackage rec {
pname = "pytest-isort";
version = "1.2.0";
2018-04-07 13:20:00 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "f0fcf9674f3a627b36e07466d335e82b0f7c4f9e0f7ec39f2a1750b0189d5371";
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
2020-06-16 14:14:04 -07:00
checkInputs = [ pytest ]
++ lib.optionals isPy27 [ mock ];
2019-03-11 12:42:15 +01:00
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/";
2018-04-07 13:20:00 +02:00
license = licenses.bsd3;
};
}