Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / getkey / default.nix
blobc0cbec29145abe131b1c2cba152c840bab11ac45
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 , flake8
6 }:
8 buildPythonPackage rec {
9   pname = "getkey";
10   version = "0.6.5";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "0ng0ihfagh9g8hral0bq5nhjlp3csqghyv3z8b7ylkdkqc1cgiv8";
15   };
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   '';
23   checkInputs = [
24     flake8
25     pytestCheckHook
26   ];
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   };