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