blob: 4014c235f91e9da68266dec51767663c412bbfbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools-scm,
backports-tarfile,
}:
buildPythonPackage rec {
pname = "jaraco-context";
version = "6.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "jaraco";
repo = "jaraco.context";
tag = "v${version}";
hash = "sha256-WXZX2s9Qehp0F3bSv2c5lGxhhn6HKFkABbtYKizG1/8=";
};
pythonNamespaces = [ "jaraco" ];
build-system = [ setuptools-scm ];
dependencies = lib.optionals (pythonOlder "3.12") [ backports-tarfile ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "jaraco.context" ];
meta = {
description = "Python module for context management";
homepage = "https://github.com/jaraco/jaraco.context";
changelog = "https://github.com/jaraco/jaraco.context/blob/v${version}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|