From f0a25526fbd1fd282ee4bea5374c60cf2e7dace5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 29 Aug 2023 08:17:30 +0200 Subject: [PATCH] python310Packages.us: add format - disable on unsupported Python releases --- pkgs/development/python-modules/us/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/us/default.nix b/pkgs/development/python-modules/us/default.nix index 6bb04feecef5..a6de4cfcb0cf 100644 --- a/pkgs/development/python-modules/us/default.nix +++ b/pkgs/development/python-modules/us/default.nix @@ -7,19 +7,26 @@ buildPythonPackage rec { pname = "us"; version = "3.1.1"; + format = "setuptools"; - propagatedBuildInputs = [ jellyfish ]; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-40eWPo0kocp0N69EP6aFkXdoR7UMhlDY7w61NILnBcI="; + hash = "sha256-40eWPo0kocp0N69EP6aFkXdoR7UMhlDY7w61NILnBcI="; }; - # Upstream requires jellyfish==0.5.6 but we have 0.6.1 + # Upstream spins jellyfish postPatch = '' - substituteInPlace setup.py --replace "jellyfish==" "jellyfish>=" + substituteInPlace setup.py \ + --replace "jellyfish==" "jellyfish>=" ''; + propagatedBuildInputs = [ + jellyfish + ]; + + doCheck = false; # pypi version doesn't include tests meta = {