nixpkgs-suyu/pkgs/development/python-modules/restfly/default.nix
Dmitry Kalinkin a56da82f7a
Merge branch 'master' into staging-next
Conflicts:
	pkgs/development/python-modules/restfly/default.nix
2022-01-13 21:39:05 -05:00

54 lines
948 B
Nix

{ lib
, arrow
, buildPythonPackage
, fetchFromGitHub
, pytest-datafiles
, pytest-vcr
, pytestCheckHook
, python-box
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "restfly";
version = "1.4.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "stevemcgrath";
repo = pname;
rev = version;
hash = "sha256-wWFf8LFZkwzbHX545tA5w2sB3ClL7eFuF+jGX0fSiSc=";
};
propagatedBuildInputs = [
requests
arrow
python-box
];
checkInputs = [
pytest-datafiles
pytest-vcr
pytestCheckHook
];
disabledTests = [
# Test requires network access
"test_session_ssl_error"
];
pythonImportsCheck = [
"restfly"
];
meta = with lib; {
description = "Python RESTfly API Library Framework";
homepage = "https://github.com/stevemcgrath/restfly";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}