1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flit-core 5, pyyaml 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "confuse"; 12 version = "1.7.0"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "beetbox"; 19 repo = pname; 20 rev = "v${version}"; 21 hash = "sha256-zdH5DNXnuAfYTuaG9EIKiXL2EbLSfzYjPSkC3G06bU8="; 22 }; 23 24 nativeBuildInputs = [ 25 flit-core 26 ]; 27 28 propagatedBuildInputs = [ 29 pyyaml 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 ]; 35 36 pythonImportsCheck = [ 37 "confuse" 38 ]; 39 40 meta = with lib; { 41 description = "Python configuration library for Python that uses YAML"; 42 homepage = "https://github.com/beetbox/confuse"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ lovesegfault ]; 45 }; 46}