nixpkgs/pkgs/development/python-modules/zodb/default.nix

62 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
2017-08-09 05:18:05 +00:00
, fetchPypi
, buildPythonPackage
, python
, pythonAtLeast
2017-08-09 05:18:05 +00:00
, zope_testrunner
, transaction
, six
, zope_interface
, zodbpickle
, zconfig
, persistent
, zc_lockfile
, BTrees
, manuel
}:
buildPythonPackage rec {
pname = "ZODB";
version = "5.6.0";
2017-08-09 05:18:05 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "1zh7rd182l15swkbkm3ib0wgyn16xasdz2mzry8k4lwk6dagnm26";
2017-08-09 05:18:05 +00:00
};
# remove broken test
postPatch = ''
rm -vf src/ZODB/tests/testdocumentation.py
'';
2017-10-29 11:16:03 +00:00
# ZConfig 3.5.0 is not compatible with Python 3.8
disabled = pythonAtLeast "3.8";
2017-08-09 05:18:05 +00:00
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; {
2017-08-09 05:18:05 +00:00
description = "Zope Object Database: object database and persistence";
homepage = "https://pypi.python.org/pypi/ZODB";
2017-08-09 05:18:05 +00:00
license = licenses.zpl21;
maintainers = with maintainers; [ goibhniu ];
};
}