7 , poetry-dynamic-versioning
13 buildPythonPackage rec {
14 pname = "dataclasses-json";
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
23 rev = "refs/tags/v${version}";
24 hash = "sha256-izNDvljUWw60joi5WfCfoqL5SDM8Jz5Pz+lI/RP35n8=";
28 substituteInPlace pyproject.toml \
29 --replace 'version = "0.0.0"' 'version = "${version}"'
34 poetry-dynamic-versioning
37 propagatedBuildInputs = [
48 # fails with the following error and avoid dependency on mypy
49 # mypy_main(None, text_io, text_io, [__file__], clean_exit=True)
50 # TypeError: main() takes at most 4 arguments (5 given)
51 "tests/test_annotations.py"
54 pythonImportsCheck = [
59 description = "Simple API for encoding and decoding dataclasses to and from JSON";
60 homepage = "https://github.com/lidatong/dataclasses-json";
61 changelog = "https://github.com/lidatong/dataclasses-json/releases/tag/v${version}";
62 license = licenses.mit;
63 maintainers = with maintainers; [ albakham ];