mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
pythonPackages.ansible-lint: disable for python2
raumel.yaml is not importable, which makes pip fail during installation
This commit is contained in:
parent
58f608339a
commit
e1e71e5886
@ -1,17 +1,21 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, isPy27
|
||||||
, ansible
|
, ansible
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, six
|
, six
|
||||||
, nose
|
, nose
|
||||||
, setuptools_scm
|
, setuptools_scm
|
||||||
, ruamel_yaml
|
, ruamel_yaml
|
||||||
|
, pathlib2
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ansible-lint";
|
pname = "ansible-lint";
|
||||||
version = "4.2.0";
|
version = "4.2.0";
|
||||||
|
# pip is not able to import version info on raumel.yaml
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -21,7 +25,8 @@ buildPythonPackage rec {
|
|||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools_scm ];
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
propagatedBuildInputs = [ pyyaml six ansible ruamel_yaml ];
|
propagatedBuildInputs = [ pyyaml six ansible ruamel_yaml ]
|
||||||
|
++ lib.optionals isPy27 [ pathlib2 ];
|
||||||
checkInputs = [ nose ];
|
checkInputs = [ nose ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user