Skip to content

Commit 50eae24

Browse files
python313Packages.zodb: refactor, add missing zope-testing (#380059)
2 parents dbbbd03 + bbc378d commit 50eae24

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed
Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
lib,
3-
fetchPypi,
3+
fetchFromGitHub,
44
buildPythonPackage,
55
python,
6+
setuptools,
7+
zope-testing,
68
zope-testrunner,
79
transaction,
8-
six,
910
zope-interface,
1011
zodbpickle,
1112
zconfig,
@@ -18,21 +19,24 @@
1819
buildPythonPackage rec {
1920
pname = "zodb";
2021
version = "6.0";
22+
pyproject = true;
2123

22-
src = fetchPypi {
23-
pname = "ZODB";
24-
inherit version;
25-
hash = "sha256-5Rx5IRXF2q1OgGdXuvovdUwADCPmurw75eQHdf5Jtdw=";
24+
src = fetchFromGitHub {
25+
owner = "zopefoundation";
26+
repo = "zodb";
27+
tag = version;
28+
hash = "sha256-AFlRDci/OnRDGVNHAMAssefZshaGT0XlkhaO/Aee2Ao=";
2629
};
2730

2831
# remove broken test
2932
postPatch = ''
3033
rm -vf src/ZODB/tests/testdocumentation.py
3134
'';
3235

33-
propagatedBuildInputs = [
36+
build-system = [ setuptools ];
37+
38+
dependencies = [
3439
transaction
35-
six
3640
zope-interface
3741
zodbpickle
3842
zconfig
@@ -43,18 +47,19 @@ buildPythonPackage rec {
4347

4448
nativeCheckInputs = [
4549
manuel
50+
zope-testing
4651
zope-testrunner
4752
];
4853

4954
checkPhase = ''
5055
${python.interpreter} -m zope.testrunner --test-path=src []
5156
'';
5257

53-
meta = with lib; {
58+
meta = {
5459
description = "Zope Object Database: object database and persistence";
5560
homepage = "https://zodb-docs.readthedocs.io/";
5661
changelog = "https://github.com/zopefoundation/ZODB/blob/${version}/CHANGES.rst";
57-
license = licenses.zpl21;
62+
license = lib.licenses.zpl21;
5863
maintainers = [ ];
5964
};
6065
}

0 commit comments

Comments
 (0)