python311Packages.bork: fix build

This commit is contained in:
Martin Weinelt 2024-03-17 22:55:43 +01:00
parent bb2116da7b
commit b7af2ad4f1
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -4,14 +4,14 @@
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, setuptools
, build
, coloredlogs
, packaging
, pip
, readme-renderer
, toml
, twine
, wheel
}:
buildPythonPackage rec {
@ -27,24 +27,27 @@ buildPythonPackage rec {
hash = "sha256-BDwVhKmZ/F8CvpT6dEI5moQZx8wHy1TwdOl889XogEo=";
};
nativeBuildInputs = [
build-system = [
pythonRelaxDepsHook
setuptools
];
pythonRelaxDeps = [
"packaging"
"readme-renderer"
"twine"
"wheel"
];
propagatedBuildInputs = [
dependencies = [
build
coloredlogs
packaging
pip
toml
readme-renderer
twine
wheel
] ++ lib.optionals (pythonOlder "3.11") [
toml
];
pythonImportsCheck = [
@ -56,10 +59,16 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"-m 'not network'"
];
disabledTests = [
# tries to call python -m bork
"test_repo"
];
meta = with lib; {
description = "Python build and release management tool";
homepage = "https://github.com/duckinator/bork";