python311Packages.troposphere: migrate to unittestCheckHook
This commit is contained in:
parent
3d7fcb0ae2
commit
0fba4aa9c3
1 changed files with 13 additions and 14 deletions
|
@ -1,13 +1,11 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, awacs
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, cfn-flip
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, python
|
|
||||||
|
|
||||||
# python dependencies
|
|
||||||
, awacs
|
|
||||||
, cfn-flip
|
|
||||||
, typing-extensions
|
, typing-extensions
|
||||||
|
, unittestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -26,29 +24,30 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cfn-flip
|
cfn-flip
|
||||||
] ++ lib.lists.optionals (pythonOlder "3.8") [
|
] ++ lib.optionals (pythonOlder "3.8") [
|
||||||
typing-extensions
|
typing-extensions
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
awacs
|
awacs
|
||||||
|
unittestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
passthru.optional-dependencies = {
|
||||||
policy = [ awacs ];
|
policy = [
|
||||||
|
awacs
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [
|
||||||
${python.interpreter} -m unittest discover
|
"troposphere"
|
||||||
'';
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "troposphere" ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Library to create AWS CloudFormation descriptions";
|
description = "Library to create AWS CloudFormation descriptions";
|
||||||
maintainers = with maintainers; [ jlesquembre ];
|
|
||||||
license = licenses.bsd2;
|
|
||||||
homepage = "https://github.com/cloudtools/troposphere";
|
homepage = "https://github.com/cloudtools/troposphere";
|
||||||
changelog = "https://github.com/cloudtools/troposphere/blob/${version}/CHANGELOG.rst";
|
changelog = "https://github.com/cloudtools/troposphere/blob/${version}/CHANGELOG.rst";
|
||||||
|
license = licenses.bsd2;
|
||||||
|
maintainers = with maintainers; [ jlesquembre ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue