Merge pull request #246735 from tjni/pytest-ansible
This commit is contained in:
commit
e1cf47876a
1 changed files with 14 additions and 3 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue