python3Packages.awacs: unbreak, modernize
unbreak by adding pytestCheckHook
This commit is contained in:
@@ -3,35 +3,37 @@
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pythonOlder,
|
||||
python,
|
||||
typing-extensions,
|
||||
setuptools,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "awacs";
|
||||
version = "2.5.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-mdU88KH1bxsJROG70tS2FYvRSrlHlBK9GKxR4gg1OFw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = lib.lists.optionals (pythonOlder "3.8") [ typing-extensions ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover
|
||||
'';
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "awacs" ];
|
||||
|
||||
meta = with lib; {
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "AWS Access Policy Language creation library";
|
||||
homepage = "https://github.com/cloudtools/awacs";
|
||||
changelog = "https://github.com/cloudtools/awacs/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ jlesquembre ];
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = with lib.maintainers; [ jlesquembre ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user