From 511a1dbe6380f89fc583f12536d1f5b885d0812d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 1 May 2023 10:33:22 +0200 Subject: [PATCH] python310Packages.bucketstore: fix version specifier --- .../python-modules/bucketstore/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/bucketstore/default.nix b/pkgs/development/python-modules/bucketstore/default.nix index 2142140cb88b..c87345732981 100644 --- a/pkgs/development/python-modules/bucketstore/default.nix +++ b/pkgs/development/python-modules/bucketstore/default.nix @@ -10,20 +10,29 @@ buildPythonPackage rec { pname = "bucketstore"; version = "0.2.2"; + format = "setuptools"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "jpetrucciani"; repo = "bucketstore"; - rev = version; + rev = "refs/tags/${version}"; hash = "sha256-BtoyGqFbeBhGQeXnmeSfiuJLZtXFrK26WO0SDlAtKG4="; }; - propagatedBuildInputs = [ boto3 ]; + postPatch = '' + substituteInPlace setup.py \ + --replace "version=__version__," 'version="${version}",' + ''; + + propagatedBuildInputs = [ + boto3 + ]; nativeCheckInputs = [ - pytestCheckHook moto + pytestCheckHook ]; pythonImportsCheck = [ @@ -33,6 +42,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library for interacting with Amazon S3"; homepage = "https://github.com/jpetrucciani/bucketstore"; + changelog = "https://github.com/jpetrucciani/bucketstore/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ jpetrucciani ]; };