bashate: enable pyproject = true

This commit is contained in:
Anthony ROUSSEL
2024-09-09 18:55:50 +02:00
parent d725bdcf0d
commit 8cad130f38
2 changed files with 23 additions and 18 deletions
+20 -17
View File
@@ -1,39 +1,42 @@
{ lib
, babel
, buildPythonApplication
, fetchPypi
, fixtures
, mock
, pbr
, pytestCheckHook
, pythonOlder
, setuptools
, testtools
{
lib,
fetchPypi,
python3Packages,
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "bashate";
version = "2.1.1";
disabled = pythonOlder "3.5";
pyproject = true;
disabled = python3Packages.pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
hash = "sha256-S6tul3+DBacgU1+Pk/H7QsUh/LxKbCs9PXZx9C8iH0w=";
};
propagatedBuildInputs = [
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
babel
pbr
setuptools
];
nativeCheckInputs = [
nativeCheckInputs = with python3Packages; [
fixtures
mock
pytestCheckHook
stestr
testtools
];
checkPhase = ''
runHook preCheck
stestr run
runHook postCheck
'';
pythonImportsCheck = [ "bashate" ];
meta = with lib; {
@@ -41,6 +44,6 @@ buildPythonApplication rec {
mainProgram = "bashate";
homepage = "https://opendev.org/openstack/bashate";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
maintainers = teams.openstack.members ++ (with maintainers; [ fab ]);
};
}
+3 -1
View File
@@ -3371,7 +3371,9 @@ with pkgs;
base16384 = callPackage ../tools/text/base16384 { };
bashate = python3Packages.callPackage ../development/tools/bashate { };
bashate = python3Packages.callPackage ../development/tools/bashate {
python3Packages = python311Packages;
};
bash-my-aws = callPackage ../tools/admin/bash-my-aws { };