python3Packages.pytest-ansible: 3.1.5 -> 3.2.1

In addition, add missing nativeBuildInputs that are implicitly added
right now, and configure setuptools-scm so that a _version.py file is
created like in the PyPI archive.
This commit is contained in:
Theodore Ni 2023-08-02 01:18:51 -07:00
parent 3b4a2c7edd
commit 54f3d132a7
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

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
];