1{ lib, buildPythonPackage, fetchFromGitHub, flake8, pytest, pytest-cov, pexpect }:
2
3buildPythonPackage rec {
4 pname = "readchar";
5 version = "2.0.0";
6
7 # Don't use wheels on PyPI
8 src = fetchFromGitHub {
9 owner = "magmax";
10 repo = "python-${pname}";
11 rev = version;
12 sha256 = "0j1vj4f2j8x5f40rs6h8qplklcxcdbvkkvjpkpmr1xagw05i12bm";
13 };
14
15 nativeBuildInputs = [ flake8 ];
16 checkInputs = [ pytest pytest-cov pexpect ];
17
18 meta = with lib; {
19 homepage = "https://github.com/magmax/python-readchar";
20 description = "Python library to read characters and key strokes";
21 license = licenses.mit;
22 maintainers = [ maintainers.mmahut ];
23 };
24}