1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, flake8 6}: 7 8buildPythonPackage rec { 9 pname = "getkey"; 10 version = "0.6.5"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "0ng0ihfagh9g8hral0bq5nhjlp3csqghyv3z8b7ylkdkqc1cgiv8"; 15 }; 16 17 # disable coverage, because we don't care and python-coveralls is not in nixpkgs 18 postPatch = '' 19 sed -e '/python-coveralls/d' -e '/pytest-cov/d' -i setup.py 20 rm setup.cfg 21 ''; 22 23 nativeCheckInputs = [ 24 flake8 25 pytestCheckHook 26 ]; 27 28 meta = with lib; { 29 description = "Read single characters and key-strokes"; 30 homepage = "https://github.com/kcsaff/getkey"; 31 license = licenses.mit; 32 maintainers = [ maintainers.symphorien ]; 33 }; 34}