Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / typepy / default.nix
blobae97d857da8d086ad580447d3ccf69eba21f46bf
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , mbstrdecoder
5 , python-dateutil
6 , pytz
7 , packaging
8 , pytestCheckHook
9 , pythonOlder
10 , tcolorpy
13 buildPythonPackage rec {
14   pname = "typepy";
15   version = "1.3.2";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "thombashi";
22     repo = pname;
23     rev = "refs/tags/v${version}";
24     hash = "sha256-oIDVjJwapHun0Rk04zOZ4IjAh7qZ2k0BXK6zqFmtVds=";
25   };
27   propagatedBuildInputs = [
28     mbstrdecoder
29   ];
31   passthru.optional-dependencies = {
32     datetime = [
33       python-dateutil
34       pytz
35       packaging
36     ];
37   };
39   nativeCheckInputs = [
40     pytestCheckHook
41     tcolorpy
42   ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
44   pythonImportsCheck = [
45     "typepy"
46   ];
48   meta = with lib; {
49     description = "Library for variable type checker/validator/converter at a run time";
50     homepage = "https://github.com/thombashi/typepy";
51     changelog = "https://github.com/thombashi/typepy/releases/tag/v${version}";
52     license = licenses.mit;
53     maintainers = with maintainers; [ genericnerdyusername ];
54   };