From 8a4a3622cf89a5ac509c712b873785572388aaad Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 30 Dec 2022 23:03:50 +0100 Subject: [PATCH] python310Packages.zodbpickle: add meta - add pythonImportsCheck --- .../python-modules/zodbpickle/default.nix | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/zodbpickle/default.nix b/pkgs/development/python-modules/zodbpickle/default.nix index 511b1f4c70a2..be3265b04722 100644 --- a/pkgs/development/python-modules/zodbpickle/default.nix +++ b/pkgs/development/python-modules/zodbpickle/default.nix @@ -1,22 +1,33 @@ -{ buildPythonPackage -, isPyPy +{ lib +, buildPythonPackage +, pythonOlder , fetchPypi }: buildPythonPackage rec { pname = "zodbpickle"; version = "2.6"; - disabled = isPyPy; # https://github.com/zopefoundation/zodbpickle/issues/10 + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-BZePwk/5PzSQRa6hH6OtHvqA6rGcq2JR6sdBfGMRodI="; + hash = "sha256-BZePwk/5PzSQRa6hH6OtHvqA6rGcq2JR6sdBfGMRodI="; }; # fails.. doCheck = false; - meta = { - homepage = "https://pypi.python.org/pypi/zodbpickle"; + pythonImportsCheck = [ + "zodbpickle" + ]; + + meta = with lib; { + description = "Fork of Python's pickle module to work with ZODB"; + homepage = "https://github.com/zopefoundation/zodbpickle"; + changelog = "https://github.com/zopefoundation/zodbpickle/blob/${version}/CHANGES.rst"; + license = licenses.asl20; + maintainers = with maintainers; [ ]; }; }