forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
62 lines
1.1 KiB
Nix
62 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, python
|
|
, pythonAtLeast
|
|
, zope_testrunner
|
|
, transaction
|
|
, six
|
|
, zope_interface
|
|
, zodbpickle
|
|
, zconfig
|
|
, persistent
|
|
, zc_lockfile
|
|
, BTrees
|
|
, manuel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ZODB";
|
|
version = "5.6.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1zh7rd182l15swkbkm3ib0wgyn16xasdz2mzry8k4lwk6dagnm26";
|
|
};
|
|
|
|
# remove broken test
|
|
postPatch = ''
|
|
rm -vf src/ZODB/tests/testdocumentation.py
|
|
'';
|
|
|
|
# ZConfig 3.5.0 is not compatible with Python 3.8
|
|
disabled = pythonAtLeast "3.8";
|
|
|
|
propagatedBuildInputs = [
|
|
transaction
|
|
six
|
|
zope_interface
|
|
zodbpickle
|
|
zconfig
|
|
persistent
|
|
zc_lockfile
|
|
BTrees
|
|
];
|
|
|
|
checkInputs = [
|
|
manuel
|
|
zope_testrunner
|
|
];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m zope.testrunner --test-path=src []
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Zope Object Database: object database and persistence";
|
|
homepage = "https://pypi.python.org/pypi/ZODB";
|
|
license = licenses.zpl21;
|
|
maintainers = with maintainers; [ goibhniu ];
|
|
};
|
|
}
|