blob: 41835f9cf04d8f5505031de10e0b67a7de88e3f2 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{ lib
, stdenv
, buildPythonPackage
, fetchpatch
, fetchPypi
, flit-core
, click
, pytestCheckHook
, shellingham
, pytest-xdist
, pytest-sugar
, coverage
, pythonOlder
}:
buildPythonPackage rec {
pname = "typer";
version = "0.4.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Vkau8Nk2ssdhoQOT8DhO5rXH/guz5c1xCxcTTKHZnP8=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
click
];
checkInputs = [
pytestCheckHook
pytest-xdist
pytest-sugar
shellingham
coverage # execs coverage in tests
];
preCheck = ''
export HOME=$(mktemp -d);
'';
disabledTests = lib.optionals stdenv.isDarwin [
# likely related to https://github.com/sarugaku/shellingham/issues/35
"test_show_completion"
"test_install_completion"
];
pythonImportsCheck = [ "typer" ];
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64);
description = "Python library for building CLI applications";
homepage = "https://typer.tiangolo.com/";
license = licenses.mit;
maintainers = with maintainers; [ winpat ];
};
}
|