8 poetry-dynamic-versioning,
14 buildPythonPackage rec {
15 pname = "dataclasses-json";
19 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
23 repo = "dataclasses-json";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-AH/T6pa/CHtQNox67fqqs/BBnUcmThvbnSHug2p33qM=";
29 substituteInPlace pyproject.toml \
30 --replace-fail 'version = "0.0.0"' 'version = "${version}"'
35 poetry-dynamic-versioning
49 # fails with the following error and avoid dependency on mypy
50 # mypy_main(None, text_io, text_io, [__file__], clean_exit=True)
51 # TypeError: main() takes at most 4 arguments (5 given)
52 "tests/test_annotations.py"
55 pythonImportsCheck = [ "dataclasses_json" ];
58 description = "Simple API for encoding and decoding dataclasses to and from JSON";
59 homepage = "https://github.com/lidatong/dataclasses-json";
60 changelog = "https://github.com/lidatong/dataclasses-json/releases/tag/v${version}";
61 license = licenses.mit;
62 maintainers = with maintainers; [ albakham ];