1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, pythonOlder 5, pythonAtLeast 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "dacite"; 11 version = "1.6.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "konradhalas"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "0nv2bnj3bq2v08ac4p583cnpjq2d6bv5isycgji5i5wg1y082a3d"; 21 }; 22 23 checkInputs = [ 24 pytestCheckHook 25 ]; 26 27 disabledTests = lib.optionals (pythonAtLeast "3.10") [ 28 # https://github.com/konradhalas/dacite/issues/167 29 "test_from_dict_with_union_and_wrong_data" 30 ]; 31 32 pythonImportsCheck = [ 33 "dacite" 34 ]; 35 36 meta = with lib; { 37 description = "Python helper to create data classes from dictionaries"; 38 homepage = "https://github.com/konradhalas/dacite"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}