From f3364ed6f1849ad2416120cb14e3f4cd32df39da Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 21 Aug 2023 19:56:46 +0200 Subject: [PATCH 1/2] python311Packages.cerberus: 1.3.4 -> 1.3.5 Changelog: https://github.com/pyeve/cerberus/blob/1.3.5/CHANGES.rst --- .../python-modules/cerberus/default.nix | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/cerberus/default.nix b/pkgs/development/python-modules/cerberus/default.nix index aa8c9b2f0440..3afb5bfca7ad 100644 --- a/pkgs/development/python-modules/cerberus/default.nix +++ b/pkgs/development/python-modules/cerberus/default.nix @@ -1,22 +1,28 @@ { lib , buildPythonPackage , fetchFromGitHub -, setuptools +, poetry-core , pytestCheckHook +, pythonOlder +, setuptools }: buildPythonPackage rec { - pname = "Cerberus"; - version = "1.3.4"; + pname = "cerberus"; + version = "1.3.5"; + format = "pyproject"; + + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "pyeve"; repo = "cerberus"; - rev = version; - sha256 = "03kj15cf1pbd11mxsik96m5w1m6p0fbdc4ia5ihzmq8rz28razpq"; + rev = "refs/tags/${version}"; + hash = "sha256-4sVNM4zHc9nsrntmJVdE9nm47CSF0UOJPPI9z3Z2YDc="; }; propagatedBuildInputs = [ + poetry-core setuptools ]; @@ -24,23 +30,20 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export TESTDIR=$(mktemp -d) - cp -R ./cerberus/tests $TESTDIR - pushd $TESTDIR - ''; - - postCheck = '' - popd - ''; - pythonImportsCheck = [ "cerberus" ]; + disabledTestPaths = [ + # We don't care about benchmarks + "cerberus/benchmarks/" + ]; + meta = with lib; { + description = "Schema and data validation tool for Python dictionaries"; homepage = "http://python-cerberus.org/"; - description = "Lightweight, extensible schema and data validation tool for Python dictionaries"; + changelog = "https://github.com/pyeve/cerberus/blob/${version}/CHANGES.rst"; license = licenses.mit; + maintainers = with maintainers; [ ]; }; } From 87f16b7d025b273893911c378128c11cddffe926 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 21 Aug 2023 19:58:06 +0200 Subject: [PATCH 2/2] python311Packages.cerberus: add myself as maintainer --- pkgs/development/python-modules/cerberus/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/cerberus/default.nix b/pkgs/development/python-modules/cerberus/default.nix index 3afb5bfca7ad..a60e80353599 100644 --- a/pkgs/development/python-modules/cerberus/default.nix +++ b/pkgs/development/python-modules/cerberus/default.nix @@ -44,6 +44,6 @@ buildPythonPackage rec { homepage = "http://python-cerberus.org/"; changelog = "https://github.com/pyeve/cerberus/blob/${version}/CHANGES.rst"; license = licenses.mit; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ fab ]; }; }