blob: a4c6e406f49bbbfa9c55710ddeb6a945fe485075 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
flake8,
}:
buildPythonPackage rec {
pname = "getkey";
version = "0.6.5";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0ng0ihfagh9g8hral0bq5nhjlp3csqghyv3z8b7ylkdkqc1cgiv8";
};
# disable coverage, because we don't care and python-coveralls is not in nixpkgs
postPatch = ''
sed -e '/python-coveralls/d' -e '/pytest-cov/d' -i setup.py
rm setup.cfg
'';
nativeCheckInputs = [
flake8
pytestCheckHook
];
meta = {
description = "Read single characters and key-strokes";
homepage = "https://github.com/kcsaff/getkey";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.symphorien ];
};
}
|