1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, setuptools-scm
6}:
7
8buildPythonPackage rec {
9 pname = "jaraco-context";
10 version = "4.3.0";
11 format = "pyproject";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "jaraco";
17 repo = "jaraco.context";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-YdbkpKv7k62uyhmjKoxeA9uf5BWnRD/rK+z46FJN4xk=";
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 = [
36 "jaraco.context"
37 ];
38
39 meta = with lib; {
40 description = "Python module for context management";
41 homepage = "https://github.com/jaraco/jaraco.context";
42 changelog = "https://github.com/jaraco/jaraco.context/blob/v${version}/CHANGES.rst";
43 license = licenses.mit;
44 maintainers = with maintainers; [ fab ];
45 };
46}