From 43095fdb77a82981054742e2943e719aac16ac5f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 7 Apr 2022 11:51:27 +0200 Subject: [PATCH] python3Packages.west: disable on older Python releases --- .../python-modules/west/default.nix | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/west/default.nix b/pkgs/development/python-modules/west/default.nix index 3876900d0a3e..df7d37929263 100644 --- a/pkgs/development/python-modules/west/default.nix +++ b/pkgs/development/python-modules/west/default.nix @@ -1,16 +1,24 @@ -{ lib, fetchPypi, buildPythonPackage, isPy3k -, colorama, configobj, packaging, pyyaml, pykwalify +{ lib +, buildPythonPackage +, colorama +, configobj +, fetchPypi +, packaging +, pykwalify +, pythonOlder +, pyyaml }: buildPythonPackage rec { - version = "0.13.0"; pname = "west"; + version = "0.13.0"; + format = "setuptools"; - disabled = !isPy3k; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-jlOmeIM6NfgYykjhgs7KpnAXFMbT/lpbT/bBaJ2CGY4="; + hash = "sha256-jlOmeIM6NfgYykjhgs7KpnAXFMbT/lpbT/bBaJ2CGY4="; }; propagatedBuildInputs = [ @@ -24,12 +32,12 @@ buildPythonPackage rec { # pypi package does not include tests (and for good reason): # tests run under 'tox' and have west try to git clone repos (not sandboxable) doCheck = false; + pythonImportsCheck = [ "west" ]; meta = with lib; { - homepage = "https://github.com/zephyrproject-rtos/west"; description = "Zephyr RTOS meta tool"; longDescription = '' West lets you manage multiple Git repositories under a single directory using a single file, @@ -47,6 +55,7 @@ buildPythonPackage rec { For more details, see Multiple Repository Management in the west documentation (https://docs.zephyrproject.org/latest/guides/west/repo-tool.html). ''; + homepage = "https://github.com/zephyrproject-rtos/west"; license = licenses.asl20; maintainers = with maintainers; [ siriobalmelli ]; };