Merge pull request #246735 from tjni/pytest-ansible

This commit is contained in:
Janik 2023-08-09 06:26:14 +02:00 committed by GitHub
commit e1cf47876a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,11 +8,14 @@
, pytest
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
, wheel
}:
buildPythonPackage rec {
pname = "pytest-ansible";
version = "3.1.5";
version = "3.2.1";
format = "pyproject";
disabled = pythonOlder "3.9";
@ -21,7 +24,7 @@ buildPythonPackage rec {
owner = "ansible";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-stsgVJseZ02C7nG0Hm0wfAnhoLpM3qRZ2Lkr1N5hODw=";
hash = "sha256-fSerRbd7QeEdTfyy2lVLq7FKHWWT0MlutonunHhM5M4=";
};
postPatch = ''
@ -29,6 +32,14 @@ buildPythonPackage rec {
--replace '/usr/bin/env' '${coreutils}/bin/env'
'';
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
buildInputs = [
pytest
];
@ -78,6 +89,6 @@ buildPythonPackage rec {
homepage = "https://github.com/jlaska/pytest-ansible";
changelog = "https://github.com/ansible-community/pytest-ansible/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ tjni ];
};
}