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