1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, pythonOlder 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "dacite"; 10 version = "1.6.0"; 11 disabled = pythonOlder "3.6"; 12 13 src = fetchFromGitHub { 14 owner = "konradhalas"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "0nv2bnj3bq2v08ac4p583cnpjq2d6bv5isycgji5i5wg1y082a3d"; 18 }; 19 20 checkInputs = [ 21 pytestCheckHook 22 ]; 23 24 pythonImportsCheck = [ "dacite" ]; 25 26 meta = with lib; { 27 description = "Python helper to create data classes from dictionaries"; 28 homepage = "https://github.com/konradhalas/dacite"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ fab ]; 31 }; 32}