Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pynamodb / default.nix
blobd22ed78e02d1ae1f979699991713e3edf1407b42
1 { lib
2 , blinker
3 , botocore
4 , buildPythonPackage
5 , fetchFromGitHub
6 , pytest-env
7 , pytest-mock
8 , pytestCheckHook
9 , pythonOlder
10 , setuptools
11 , typing-extensions
14 buildPythonPackage rec {
15   pname = "pynamodb";
16   version = "6.0.0";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "pynamodb";
23     repo = "PynamoDB";
24     rev = "refs/tags/${version}";
25     hash = "sha256-Ag/ivZ2SDYX0kwXbExt3kE/pMJgfoGc6gWoy+Rr6GTw=";
26   };
28   build-system = [
29     setuptools
30   ];
32   dependencies = [
33     botocore
34   ] ++ lib.optionals (pythonOlder "3.11") [
35     typing-extensions
36   ];
38   optional-dependencies = {
39     signal = [
40       blinker
41     ];
42   };
44   nativeCheckInputs = [
45     pytest-env
46     pytest-mock
47     pytestCheckHook
48   ] ++ optional-dependencies.signal;
50   pythonImportsCheck = [
51     "pynamodb"
52   ];
54   disabledTests = [
55     # Tests requires credentials or network access
56     "test_binary_attribute_update"
57     "test_binary_set_attribute_update"
58     "test_connection_integration"
59     "test_make_api_call__happy_path"
60     "test_model_integration"
61     "test_sign_request"
62     "test_table_integration"
63     "test_transact"
64     # require a local dynamodb instance
65     "test_create_table"
66     "test_create_table__incompatible_indexes"
67   ];
69   meta = with lib; {
70     description = "Interface for Amazon’s DynamoDB";
71     longDescription = ''
72       DynamoDB is a great NoSQL service provided by Amazon, but the API is
73       verbose. PynamoDB presents you with a simple, elegant API.
74     '';
75     homepage = "http://jlafon.io/pynamodb.html";
76     changelog = "https://github.com/pynamodb/PynamoDB/releases/tag/${version}";
77     license = licenses.mit;
78     maintainers = with maintainers; [ ];
79   };