1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-24 18:16:21 +03:00
nixpkgs/pkgs/development/python-modules/readchar/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
833 B
Nix
Raw Normal View History

2022-01-17 02:16:21 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
# native
, flake8
# tests
, pytestCheckHook
, pexpect
}:
2019-06-15 10:30:05 +02:00
buildPythonPackage rec {
pname = "readchar";
version = "3.0.5";
2022-01-17 02:16:21 +01:00
format = "setuptools";
2019-06-15 10:30:05 +02:00
# Don't use wheels on PyPI
src = fetchFromGitHub {
owner = "magmax";
repo = "python-${pname}";
2022-01-17 02:16:21 +01:00
rev = "v${version}";
sha256 = "sha256:01bjw3ipdzxq1ijn9354nlya625i26ri7jac1dnlj1d1gdd8m5lx";
2019-06-15 10:30:05 +02:00
};
2022-01-17 02:16:21 +01:00
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov readchar" ""
'';
nativeBuildInputs = [
flake8
];
checkInputs = [
pytestCheckHook
pexpect
];
2019-06-15 10:30:05 +02:00
meta = with lib; {
2019-06-15 10:30:05 +02:00
homepage = "https://github.com/magmax/python-readchar";
description = "Python library to read characters and key strokes";
license = licenses.mit;
maintainers = [ maintainers.mmahut ];
};
}