Merge pull request #198643 from r-ryantm/auto-update/python310Packages.python-utils

python310Packages.python-utils: 3.3.3 -> 3.4.5
This commit is contained in:
Fabian Affolter 2022-10-30 20:43:13 +01:00 committed by GitHub
commit dc3446688c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,36 +2,44 @@
, buildPythonPackage
, fetchFromGitHub
, loguru
, pytestCheckHook
, six
, pytest-asyncio
, pytest-mypy
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-utils";
version = "3.3.3";
version = "3.4.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "WoLpH";
repo = pname;
rev = "v${version}";
hash = "sha256-U6yamXbG8CUrNnFmGTBpHUelZSgoaNyB2CdUSH9WdMA=";
rev = "refs/tags/v${version}";
hash = "sha256-O/+jvdzzxUFaQdAfUM9p40fPPDNN+stTauCD993HH6Y=";
};
# disable coverage and linting
postPatch = ''
sed -i '/--cov/d' pytest.ini
sed -i '/--flake8/d' pytest.ini
'';
propagatedBuildInputs = [
loguru
six
];
passthru.optional-dependencies = {
loguru = [
loguru
];
};
checkInputs = [
pytest-asyncio
pytest-mypy
pytestCheckHook
] ++ passthru.optional-dependencies.loguru;
pythonImportsCheck = [
"python_utils"
];
pytestFlagsArray = [
@ -42,5 +50,6 @@ buildPythonPackage rec {
description = "Module with some convenient utilities";
homepage = "https://github.com/WoLpH/python-utils";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}