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

27 lines
627 B
Nix
Raw Normal View History

2020-06-16 22:14:04 +01:00
{ lib, buildPythonPackage, fetchPypi, isPy27, mock, pytest, isort }:
buildPythonPackage rec {
pname = "pytest-isort";
2020-06-06 07:47:27 +01:00
version = "1.0.0";
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:27 +01:00
sha256 = "758156cb4dc1db72adc1b7e253011f5eea117fab32af03cedb4cbfc6058b5f8f";
};
propagatedBuildInputs = [ isort ];
2020-06-16 22:14:04 +01:00
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;
};
}