nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 60 lines 1.1 kB view raw
1{ 2 lib, 3 arrow, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytest-cov-stub, 7 pytest-datafiles, 8 pytest-vcr, 9 pytestCheckHook, 10 python-box, 11 requests, 12 responses, 13 setuptools, 14 typing-extensions, 15}: 16 17buildPythonPackage rec { 18 pname = "restfly"; 19 version = "1.5.1"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "stevemcgrath"; 24 repo = "restfly"; 25 tag = version; 26 hash = "sha256-hHNsOFu2b4sb9zbdWVTwoU1HShLFqC+Q9/PJcEqu7Hg="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 arrow 33 python-box 34 requests 35 typing-extensions 36 ]; 37 38 nativeCheckInputs = [ 39 pytest-cov-stub 40 pytest-datafiles 41 pytest-vcr 42 pytestCheckHook 43 responses 44 ]; 45 46 disabledTests = [ 47 # Test requires network access 48 "test_session_ssl_error" 49 ]; 50 51 pythonImportsCheck = [ "restfly" ]; 52 53 meta = { 54 description = "Python RESTfly API Library Framework"; 55 homepage = "https://github.com/stevemcgrath/restfly"; 56 changelog = "https://github.com/librestfly/restfly/blob/${version}/CHANGELOG.md"; 57 license = lib.licenses.mit; 58 maintainers = with lib.maintainers; [ fab ]; 59 }; 60}