mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
f8a4abdc2e
Co-authored-by: R. RyanTM <ryantm-bot@ryantm.com>
39 lines
880 B
Nix
39 lines
880 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
setuptools-scm,
|
|
flake8,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-flake8";
|
|
version = "1.3.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coherent-oss";
|
|
repo = "pytest-flake8";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-uc5DOqqdoLfhzI2ogDOqhbJOHzdu+uqSOojIH+S1LZI=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [ flake8 ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/coherent-oss/pytest-flake8/blob/${src.rev}/NEWS.rst";
|
|
description = "py.test plugin for efficiently checking PEP8 compliance";
|
|
homepage = "https://github.com/coherent-oss/pytest-flake8";
|
|
maintainers = with lib.maintainers; [ jluttine ];
|
|
license = lib.licenses.bsd2;
|
|
};
|
|
}
|