nixpkgs/pkgs/development/python-modules/zodb/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

59 lines
1 KiB
Nix

{ lib
, fetchPypi
, buildPythonPackage
, python
, zope_testrunner
, transaction
, six
, zope_interface
, zodbpickle
, zconfig
, persistent
, zc_lockfile
, btrees
, manuel
}:
buildPythonPackage rec {
pname = "ZODB";
version = "5.8.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-KNugDvYm3hBYnt7auFrQ8O33KSXnXTahXJnGOsBf52Q=";
};
# remove broken test
postPatch = ''
rm -vf src/ZODB/tests/testdocumentation.py
'';
propagatedBuildInputs = [
transaction
six
zope_interface
zodbpickle
zconfig
persistent
zc_lockfile
btrees
];
nativeCheckInputs = [
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://zodb-docs.readthedocs.io/";
changelog = "https://github.com/zopefoundation/ZODB/blob/${version}/CHANGES.rst";
license = licenses.zpl21;
maintainers = with maintainers; [ goibhniu ];
};
}