mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
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:
parent
c9bf6aebaa
commit
40d02af8aa
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user