blob: c5c393b29c01a34ab9af32e57b6ba2af06ef01f5 (
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, mbstrdecoder
, python-dateutil
, pytz
, packaging
, pytestCheckHook
, pythonOlder
, tcolorpy
}:
buildPythonPackage rec {
pname = "typepy";
version = "1.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "thombashi";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-cgy1+6RZ1DUyH45bAKpGPOOZCwhCUghummw2fnfJGww=";
};
propagatedBuildInputs = [
mbstrdecoder
];
passthru.optional-dependencies = {
datetime = [
python-dateutil
pytz
packaging
];
};
nativeCheckInputs = [
pytestCheckHook
tcolorpy
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [
"typepy"
];
meta = with lib; {
description = "Library for variable type checker/validator/converter at a run time";
homepage = "https://github.com/thombashi/typepy";
changelog = "https://github.com/thombashi/typepy/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ genericnerdyusername ];
};
}
|