Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / simple-salesforce / default.nix
blob10d5f64385a0aaf7378fb63f090742e3235b37bc
1 { lib
2 , buildPythonPackage
3 , cryptography
4 , fetchFromGitHub
5 , more-itertools
6 , pendulum
7 , pyjwt
8 , pytestCheckHook
9 , pythonOlder
10 , pytz
11 , requests
12 , responses
13 , setuptools
14 , zeep
17 buildPythonPackage rec {
18   pname = "simple-salesforce";
19   version = "1.12.5";
20   pyproject = true;
22   disabled = pythonOlder "3.7";
24   src = fetchFromGitHub {
25     owner = "simple-salesforce";
26     repo = "simple-salesforce";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-mj7lbBGEybsEzWo4TYmPrN3mBXItdo/JomVIYmzIDAY=";
29   };
31   nativeBuildInputs = [
32     setuptools
33   ];
35   propagatedBuildInputs = [
36     cryptography
37     more-itertools
38     pendulum
39     pyjwt
40     requests
41     zeep
42   ];
44   nativeCheckInputs = [
45     pytestCheckHook
46     pytz
47     responses
48   ];
50   pythonImportsCheck = [
51     "simple_salesforce"
52   ];
54   meta = with lib; {
55     description = "A very simple Salesforce.com REST API client for Python";
56     homepage = "https://github.com/simple-salesforce/simple-salesforce";
57     changelog = "https://github.com/simple-salesforce/simple-salesforce/blob/v${version}/CHANGES";
58     license = licenses.asl20;
59     maintainers = with maintainers; [ ];
60   };