blob: fea33d9d9ba0c13b2ebc1de57291968f1593529a (
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, typing-inspect
, marshmallow-enum
, hypothesis
, mypy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "dataclasses-json";
version = "0.5.9";
src = fetchFromGitHub {
owner = "lidatong";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-2/J+d7SQvUs7nXw1n+qwy0DQCplK28eUrbP7+yQPB7g=";
};
propagatedBuildInputs = [
typing-inspect
marshmallow-enum
];
nativeCheckInputs = [
hypothesis
mypy
pytestCheckHook
];
disabledTests = [
# mypy_main(None, text_io, text_io, [__file__], clean_exit=True)
# TypeError: main() takes at most 4 arguments (5 given)
"test_type_hints"
];
pythonImportsCheck = [ "dataclasses_json" ];
meta = with lib; {
description = "Simple API for encoding and decoding dataclasses to and from JSON";
homepage = "https://github.com/lidatong/dataclasses-json";
license = licenses.mit;
maintainers = with maintainers; [ albakham ];
};
}
|