Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, fetchPypi 3, buildPythonPackage 4, pycodestyle 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "flake8-blind-except"; 10 version = "0.2.1"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-8lpXWp3LPus8dgv5wi22C4taIxICJO0fqppD913X3RY="; 18 }; 19 20 propagatedBuildInputs = [ 21 pycodestyle 22 ]; 23 24 # Module has no tests 25 doCheck = false; 26 27 pythonImportsCheck = [ 28 "flake8_blind_except" 29 ]; 30 31 meta = with lib; { 32 description = "A flake8 extension that checks for blind except: statements"; 33 homepage = "https://github.com/elijahandrews/flake8-blind-except"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ johbo ]; 36 }; 37}