1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, typing-inspect 5, marshmallow-enum 6, hypothesis 7, mypy 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "dataclasses-json"; 13 version = "0.5.6"; 14 15 src = fetchFromGitHub { 16 owner = "lidatong"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "09253p0zjqfaqap7jgfgjl1jswwnz7mb6x7dqix09id92mnb89mf"; 20 }; 21 22 propagatedBuildInputs = [ 23 typing-inspect 24 marshmallow-enum 25 ]; 26 27 checkInputs = [ 28 hypothesis 29 mypy 30 pytestCheckHook 31 ]; 32 33 disabledTests = [ 34 # AssertionError: Type annotations check failed 35 "test_type_hints" 36 ]; 37 38 pythonImportsCheck = [ "dataclasses_json" ]; 39 40 meta = with lib; { 41 description = "Simple API for encoding and decoding dataclasses to and from JSON"; 42 homepage = "https://github.com/lidatong/dataclasses-json"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ albakham ]; 45 }; 46}