python310Packages.executing: reformat

This commit is contained in:
Fabian Affolter 2022-12-10 14:23:00 +01:00 committed by Martin Weinelt
parent a2bc91cd9b
commit 06e855311a

View file

@ -2,11 +2,12 @@
, asttokens , asttokens
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, setuptools-scm
, pytestCheckHook
, littleutils , littleutils
, pytestCheckHook
, pythonAtLeast , pythonAtLeast
, pythonOlder
, rich , rich
, setuptools-scm
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -14,25 +15,25 @@ buildPythonPackage rec {
version = "1.2.0"; version = "1.2.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "alexmojaki"; owner = "alexmojaki";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-3M3uSJ5xQ5Ciy8Lz21u9zjju/7SBSFHobCqSiJ6AP8M="; hash = "sha256-3M3uSJ5xQ5Ciy8Lz21u9zjju/7SBSFHobCqSiJ6AP8M=";
}; };
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ nativeBuildInputs = [
setuptools-scm setuptools-scm
]; ];
preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
'';
checkInputs = [ checkInputs = [
pytestCheckHook
asttokens asttokens
littleutils littleutils
pytestCheckHook
] ++ lib.optionals (pythonAtLeast "3.11") [ ] ++ lib.optionals (pythonAtLeast "3.11") [
rich rich
]; ];