From cfe96dbfce8bd62dcd4a8ad62cb79dec140b1a62 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 28 Apr 2023 10:38:05 +0200 Subject: [PATCH] python310Packages.blobfile: 2.0.1 -> 2.0.2 Changelog: https://github.com/christopher-hesse/blobfile/blob/v2.0.2/CHANGES.md --- .../python-modules/blobfile/default.nix | 42 ++++++++++++++----- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/blobfile/default.nix b/pkgs/development/python-modules/blobfile/default.nix index eb2462f33e9e..c4b6b3658114 100644 --- a/pkgs/development/python-modules/blobfile/default.nix +++ b/pkgs/development/python-modules/blobfile/default.nix @@ -1,25 +1,45 @@ -{ lib, buildPythonPackage, fetchPypi, pycryptodomex, filelock, urllib3, lxml }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, filelock +, lxml +, pycryptodomex +, pythonOlder +, urllib3 +}: buildPythonPackage rec { pname = "blobfile"; - version = "2.0.1"; - format = "wheel"; + version = "2.0.2"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - format = "wheel"; - python = "py3"; - dist = "py3"; - hash = "sha256-b1Gz6UjzCpLnNKl0sk/ND2pRhB/Qg96WiJkjFIE1jaI="; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "christopher-hesse"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-vVoiNIN/LNdbedaOQ+gtj4jhzmrGri49fftHKG+K/fg="; }; - propagatedBuildInputs = [ pycryptodomex filelock urllib3 lxml ]; + propagatedBuildInputs = [ + pycryptodomex + filelock + urllib3 + lxml + ]; + # Tests require a running Docker instance doCheck = false; + pythonImportsCheck = [ + "blobfile" + ]; + meta = with lib; { + description = "Read Google Cloud Storage, Azure Blobs, and local paths with the same interface"; homepage = "https://github.com/christopher-hesse/blobfile"; - description = "Read Google Cloud Storage, Azure Blobs, and local paths with the same interface "; + changelog = "https://github.com/christopher-hesse/blobfile/blob/v${version}/CHANGES.md"; license = licenses.mit; maintainers = with maintainers; [ happysalada ]; };