summary refs log tree commit diff
path: root/pkgs/development/python-modules/readchar/default.nix
blob: c83a2bba1cd6a5d520355e8be9830d3935dca845 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, buildPythonPackage, fetchFromGitHub, flake8, pytest, pytest-cov, pexpect }:

buildPythonPackage rec {
  pname = "readchar";
  version = "2.0.0";

  # Don't use wheels on PyPI
  src = fetchFromGitHub {
    owner = "magmax";
    repo = "python-${pname}";
    rev = version;
    sha256 = "0j1vj4f2j8x5f40rs6h8qplklcxcdbvkkvjpkpmr1xagw05i12bm";
  };

  nativeBuildInputs = [ flake8 ];
  checkInputs = [ pytest pytest-cov pexpect ];

  meta = with lib; {
    homepage = "https://github.com/magmax/python-readchar";
    description = "Python library to read characters and key strokes";
    license = licenses.mit;
    maintainers = [ maintainers.mmahut ];
  };
}