2021-07-24 12:14:16 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, flake8, pytest, pytest-cov, pexpect }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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 ];
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ pytest pytest-cov pexpect ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/magmax/python-readchar";
|
|
|
|
description = "Python library to read characters and key strokes";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mmahut ];
|
|
|
|
};
|
|
|
|
}
|