ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pynamodb / default.nix
blob4844ebee99903901aa2cb358778043eec526b7f2
1 { lib
2 , blinker
3 , botocore
4 , buildPythonPackage
5 , fetchFromGitHub
6 , pytest-mock
7 , pytestCheckHook
8 , python-dateutil
9 , pythonOlder
10 , requests
11 , typing-extensions
14 buildPythonPackage rec {
15   pname = "pynamodb";
16   version = "5.2.3";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "pynamodb";
23     repo = "PynamoDB";
24     rev = "refs/tags/${version}";
25     sha256 = "sha256-3Si0BCMofr38OuXoX8Tj9n3ITv3rH5hNfDQZvZWk79o=";
26   };
28   propagatedBuildInputs = [
29     python-dateutil
30     botocore
31   ] ++ lib.optionals (pythonOlder "3.8") [
32     typing-extensions
33   ];
35   passthru.optional-dependencies = {
36     signal = [
37       blinker
38     ];
39   };
41   checkInputs = [
42     pytest-mock
43     pytestCheckHook
44   ] ++ passthru.optional-dependencies.signal;
46   pythonImportsCheck = [
47     "pynamodb"
48   ];
50   disabledTests = [
51     # Tests requires credentials or network access
52     "test_binary_attribute_update"
53     "test_binary_set_attribute_update"
54     "test_connection_integration"
55     "test_make_api_call__happy_path"
56     "test_model_integration"
57     "test_sign_request"
58     "test_table_integration"
59     "test_transact"
60   ];
62   meta = with lib; {
63     description = "Interface for Amazon’s DynamoDB";
64     longDescription = ''
65       DynamoDB is a great NoSQL service provided by Amazon, but the API is
66       verbose. PynamoDB presents you with a simple, elegant API.
67     '';
68     homepage = "http://jlafon.io/pynamodb.html";
69     license = licenses.mit;
70     maintainers = with maintainers; [ ];
71   };