python310Packages.pyinfra: 2.0.1 -> 2.1

- enable tests
main
Fabian Affolter 2 years ago
parent 8ac0f2cdcf
commit 6cbf6f4e5e
  1. 30
      pkgs/development/python-modules/pyinfra/default.nix

@ -1,30 +1,33 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi
, pythonOlder
, gevent
, click , click
, colorama , colorama
, configparser , configparser
, distro , distro
, fetchFromGitHub
, gevent
, jinja2 , jinja2
, paramiko , paramiko
, pytestCheckHook
, python-dateutil , python-dateutil
, pythonOlder
, pywinrm , pywinrm
, pyyaml
, setuptools , setuptools
, six
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyinfra"; pname = "pyinfra";
version = "2.0.2"; version = "2.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "Fizzadar";
sha256 = "sha256-AW2pOyLqyugTSM7PE4oR9ZwD1liNpdD636QA3ElafG0="; repo = pname;
rev = "v${version}";
hash = "sha256-frjPxSATvXgeACT4kThoiPu04Ez8bs8FIPdf5PVuiSg=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -37,16 +40,23 @@ buildPythonPackage rec {
paramiko paramiko
python-dateutil python-dateutil
pywinrm pywinrm
pyyaml
setuptools setuptools
six
]; ];
doCheck = false; checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ pythonImportsCheck = [
"pyinfra" "pyinfra"
]; ];
disabledTests = [
# Test requires SSH binary
"test_load_ssh_config"
];
meta = with lib; { meta = with lib; {
description = "Python-based infrastructure automation"; description = "Python-based infrastructure automation";
longDescription = '' longDescription = ''

Loading…
Cancel
Save