ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / restfly / default.nix
blob067230e804c60b5e9e76310ca775bff6c5397464
1 { lib
2 , arrow
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pytest-datafiles
6 , pytest-vcr
7 , pytestCheckHook
8 , python-box
9 , pythonOlder
10 , responses
11 , requests
14 buildPythonPackage rec {
15   pname = "restfly";
16   version = "1.4.7";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "stevemcgrath";
23     repo = pname;
24     rev = version;
25     hash = "sha256-PPXJHatJKve9fIjveVYRnTSIDHFmnSDWTnkgO91twJs=";
26   };
28   propagatedBuildInputs = [
29     requests
30     arrow
31     python-box
32   ];
34   checkInputs = [
35     pytest-datafiles
36     pytest-vcr
37     pytestCheckHook
38     responses
39   ];
41   disabledTests = [
42     # Test requires network access
43     "test_session_ssl_error"
44   ];
46   pythonImportsCheck = [
47     "restfly"
48   ];
50   meta = with lib; {
51     description = "Python RESTfly API Library Framework";
52     homepage = "https://github.com/stevemcgrath/restfly";
53     license = with licenses; [ mit ];
54     maintainers = with maintainers; [ fab ];
55   };