Merge pull request #211913 from fabaff/pytest-isort-fix

python310Packages.pytest-isort: 3.0.0 -> 3.1.0
This commit is contained in:
Fabian Affolter 2023-01-21 18:48:22 +01:00 committed by GitHub
commit 3328668d16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, importlib-metadata
, isort
, poetry-core
@ -12,7 +11,7 @@
buildPythonPackage rec {
pname = "pytest-isort";
version = "3.0.0";
version = "3.1.0";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -20,8 +19,8 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "stephrdev";
repo = pname;
rev = version;
hash = "sha256-gbEO3HBDeZ+nUACzpeV6iVuCdNHS5956wFzIYkbam+M=";
rev = "refs/tags/${version}";
hash = "sha256-1oCVIi0sXwac4AufScJJRsfvBwaBAwlMBRNqLcUXEh4=";
};
nativeBuildInputs = [
@ -42,15 +41,6 @@ buildPythonPackage rec {
pytestCheckHook
];
patches = [
# Can be removed with the next release, https://github.com/stephrdev/pytest-isort/pull/44
(fetchpatch {
name = "switch-to-poetry-core.patch";
url = "https://github.com/stephrdev/pytest-isort/commit/f17ed2d294ae90e415d051e1c720982e3dd01bff.patch";
sha256 = "sha256-PiOs0c61BNx/tZN11DYblOd7tNzGthNnlkmYMTI9v18=";
})
];
pythonImportsCheck = [
"pytest_isort"
];
@ -58,6 +48,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Pytest plugin to perform isort checks (import ordering)";
homepage = "https://github.com/moccu/pytest-isort/";
changelog = "https://github.com/stephrdev/pytest-isort/blob/${version}/CHANGELOG.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};