ansible-lint: 4.1.1a0 -> 4.2.0

Upstream switched to a PEP517-based build[1] which required some minor
changes on the package. Additionally, the update fixes the currently
broken package build[2].

[1] https://www.python.org/dev/peps/pep-0517/
[2] https://hydra.nixos.org/build/109032815
This commit is contained in:
Maximilian Bosch 2020-01-02 22:59:09 +01:00
parent c9bf6aebaa
commit 40d02af8aa
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -11,13 +11,15 @@
buildPythonPackage rec {
pname = "ansible-lint";
version = "4.1.1a0";
version = "4.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "00mw56a3lmdb5xvrzhahrzqv3wvxfz0mxl4n0qbkxzggf2pg0i8d";
sha256 = "0jj1vjmwgaj6d3f3xslcfq5zp16z7rxwlahfp36661fpha35v4pb";
};
format = "pyproject";
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ pyyaml six ansible ruamel_yaml ];
checkInputs = [ nose ];
@ -31,10 +33,11 @@ buildPythonPackage rec {
# give a hint to setuptools_scm on package version
preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="v${version}"
export HOME=$(mktemp -d)
'';
checkPhase = ''
PATH=$out/bin:$PATH HOME=$(mktemp -d) nosetests test
PATH=$out/bin:$PATH nosetests test
'';
meta = with lib; {