nixpkgs/pkgs/development/python-modules/pywinrm/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

52 lines
846 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, mock
, pytestCheckHook
, requests
, requests_ntlm
, six
, xmltodict
}:
buildPythonPackage rec {
pname = "pywinrm";
version = "0.4.3";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-mVZ0v1rGSyViycVlQEcxCeUw02veEMJi1aUpYSGtVWU=";
};
propagatedBuildInputs = [
requests
requests_ntlm
six
xmltodict
];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [
"winrm"
];
pytestFlagsArray = [
"winrm/tests/"
];
meta = with lib; {
description = "Python library for Windows Remote Management";
homepage = "https://github.com/diyan/pywinrm";
license = licenses.mit;
maintainers = with maintainers; [ elasticdog kamadorueda ];
};
}