Merge pull request #267395 from fabaff/simple-salesforce-fix

python311Packages.simple-salesforce: adjust inputs
This commit is contained in:
OTABI Tomoya 2023-11-14 18:18:11 +09:00 committed by GitHub
commit afc3220b90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,49 +1,52 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, authlib
, requests
, nose
, cryptography
, fetchFromGitHub
, more-itertools
, pendulum
, pyjwt
, pytestCheckHook
, pythonOlder
, pytz
, requests
, responses
, setuptools
, zeep
}:
buildPythonPackage rec {
pname = "simple-salesforce";
version = "1.12.5";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = pname;
owner = "simple-salesforce";
repo = "simple-salesforce";
rev = "refs/tags/v${version}";
hash = "sha256-mj7lbBGEybsEzWo4TYmPrN3mBXItdo/JomVIYmzIDAY=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
authlib
cryptography
more-itertools
pendulum
pyjwt
requests
zeep
];
nativeCheckInputs = [
nose
pytestCheckHook
pytz
responses
];
checkPhase = ''
runHook preCheck
nosetests -v
runHook postCheck
'';
pythonImportsCheck = [
"simple_salesforce"
];