From 348353cf3616d9b597d1a4ef7bf0b565eac44dbb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 22 May 2022 22:59:37 +0200 Subject: [PATCH] python310Packages.locket: 0.2.1 -> 1.0.0 --- .../python-modules/locket/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/locket/default.nix b/pkgs/development/python-modules/locket/default.nix index fd75a965c52f..e416d8dd8288 100644 --- a/pkgs/development/python-modules/locket/default.nix +++ b/pkgs/development/python-modules/locket/default.nix @@ -1,21 +1,30 @@ -{ lib, buildPythonPackage, fetchPypi, pytest }: +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +}: buildPythonPackage rec { pname = "locket"; - version = "0.2.1"; + version = "1.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "3e1faba403619fe201552f083f1ecbf23f550941bc51985ac6ed4d02d25056dd"; + hash = "sha256-XA1MBSqLu/dQ4Fao5lzNMJCG9PDxii6sMGqN+kESpjI="; }; - buildInputs = [ pytest ]; - # weird test requirements (spur.local>=0.3.7,<0.4) doCheck = false; + pythonImportsCheck = [ + "locket" + ]; + meta = with lib; { - description = "Locket implements a lock that can be used by multiple processes provided they use the same path."; + description = "Library which provides a lock that can be used by multiple processes"; homepage = "https://github.com/mwilliamson/locket.py"; license = licenses.bsd2; maintainers = with maintainers; [ teh ];