blob: 1e5177b27d233780a26c5a171d0c4447f3022595 (
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
41
42
43
44
45
46
47
48
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
zope-interface,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "transaction";
version = "5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "transaction";
tag = version;
hash = "sha256-8yvA2dvB69+EqsAa+hc93rgg6D64lcajl6JgFabhjwY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools<74" "setuptools"
'';
build-system = [
setuptools
];
dependencies = [
zope-interface
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "transaction" ];
meta = {
description = "Transaction management";
homepage = "https://transaction.readthedocs.io/";
changelog = "https://github.com/zopefoundation/transaction/blob/${version}/CHANGES.rst";
license = lib.licenses.zpl21;
maintainers = with lib.maintainers; [ nickcao ];
};
}
|