nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools-scm,
6 flake8,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-flake8";
12 version = "1.3.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "coherent-oss";
17 repo = "pytest-flake8";
18 tag = "v${version}";
19 hash = "sha256-uc5DOqqdoLfhzI2ogDOqhbJOHzdu+uqSOojIH+S1LZI=";
20 };
21
22 build-system = [ setuptools-scm ];
23
24 dependencies = [ flake8 ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 meta = {
29 changelog = "https://github.com/coherent-oss/pytest-flake8/blob/${src.rev}/NEWS.rst";
30 description = "py.test plugin for efficiently checking PEP8 compliance";
31 homepage = "https://github.com/coherent-oss/pytest-flake8";
32 maintainers = with lib.maintainers; [ jluttine ];
33 license = lib.licenses.bsd2;
34 };
35}