nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytest,
6 pyflakes,
7}:
8
9buildPythonPackage rec {
10 # upstream has abandoned project in favor of pytest-flake8
11 # retaining package to not break other packages
12 pname = "pytest-flakes";
13 version = "4.0.5";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "953134e97215ae31f6879fbd7368c18d43f709dc2fab5b7777db2bb2bac3a924";
19 };
20
21 buildInputs = [ pytest ];
22 propagatedBuildInputs = [ pyflakes ];
23 nativeCheckInputs = [ pytest ];
24
25 # no longer passes
26 doCheck = false;
27 pythonImportsCheck = [ "pytest_flakes" ];
28 # disable one test case that looks broken
29 checkPhase = ''
30 py.test test_flakes.py -k 'not test_syntax_error'
31 '';
32
33 meta = {
34 license = lib.licenses.mit;
35 homepage = "https://pypi.python.org/pypi/pytest-flakes";
36 description = "Pytest plugin to check source code with pyflakes";
37 };
38}