1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, mock 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "python-decouple"; 11 version = "3.8"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "HBNetwork"; 18 repo = pname; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-F9Gu7Y/dJhwOJi/ZaoVclF3+4U/N5JdvpXwgGB3SF3Q="; 21 }; 22 23 nativeCheckInputs = [ 24 mock 25 pytestCheckHook 26 ]; 27 28 pythonImportsCheck = [ 29 "decouple" 30 ]; 31 32 meta = with lib; { 33 description = "Module to handle code and condifuration"; 34 homepage = "https://github.com/HBNetwork/python-decouple"; 35 changelog = "https://github.com/HBNetwork/python-decouple/blob/v${version}/CHANGELOG.md"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}