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