13 buildPythonPackage rec {
18 # Don't use wheels on PyPI
19 src = fetchFromGitHub {
21 repo = "python-${pname}";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-XowLJ9YAHhP9nInFVYtoLEOmlWBRWQX259vwm9SVVZU=";
27 substituteInPlace setup.cfg \
28 --replace "--cov=readchar" "" \
29 --replace "attr: readchar.__version__" "${version}"
30 # run Linux tests on Darwin as well
31 # see https://github.com/magmax/python-readchar/pull/99 for why this is not upstreamed
32 substituteInPlace tests/linux/conftest.py \
33 --replace 'sys.platform.startswith("linux")' 'sys.platform.startswith(("darwin", "linux"))'
40 pythonImportsCheck = [ "readchar" ];
48 homepage = "https://github.com/magmax/python-readchar";
49 description = "Python library to read characters and key strokes";
50 license = licenses.mit;
51 maintainers = [ maintainers.mmahut ];