1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools-scm, 7}: 8 9buildPythonPackage rec { 10 pname = "jaraco-context"; 11 version = "4.3.0"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "jaraco"; 18 repo = "jaraco.context"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-YdbkpKv7k62uyhmjKoxeA9uf5BWnRD/rK+z46FJN4xk="; 21 }; 22 23 pythonNamespaces = [ "jaraco" ]; 24 25 nativeBuildInputs = [ setuptools-scm ]; 26 27 # Module has no tests 28 doCheck = false; 29 30 pythonImportsCheck = [ "jaraco.context" ]; 31 32 meta = with lib; { 33 description = "Python module for context management"; 34 homepage = "https://github.com/jaraco/jaraco.context"; 35 changelog = "https://github.com/jaraco/jaraco.context/blob/v${version}/CHANGES.rst"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}