blob: 2ee404cb18ed9f90ae6b5477ad4935cbc5e9d36a (
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
|
{ buildPythonPackage
, fetchPypi
, pythonOlder
, lib
, setuptools-scm
, pytest
, typing-extensions
, glibcLocales
}:
buildPythonPackage rec {
pname = "typeguard";
version = "2.12.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-/Kd/1My6Y0ZbQhzburWhqOOZTm1vGLRdortHXAnxR+8=";
};
buildInputs = [ setuptools-scm ];
nativeBuildInputs = [ glibcLocales ];
LC_ALL="en_US.utf-8";
postPatch = ''
substituteInPlace setup.cfg --replace " --cov" ""
'';
checkInputs = [ pytest typing-extensions ];
# mypy tests aren't passing with latest mypy
checkPhase = ''
py.test . --ignore=tests/mypy
'';
disabled = pythonOlder "3.3";
meta = with lib; {
description = "This library provides run-time type checking for functions defined with argument type annotations";
homepage = "https://github.com/agronholm/typeguard";
license = licenses.mit;
};
}
|