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