nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, arrow
3, buildPythonPackage
4, fetchFromGitHub
5, pytest-datafiles
6, pytest-vcr
7, pytestCheckHook
8, python-box
9, requests
10}:
11
12buildPythonPackage rec {
13 pname = "restfly";
14 version = "1.3.5";
15
16 src = fetchFromGitHub {
17 owner = "stevemcgrath";
18 repo = pname;
19 rev = version;
20 sha256 = "0cq07wj6g3kg7i4qyjp3n3pv13k9p4p43rd6kn139wsn1mh8fr56";
21 };
22
23 propagatedBuildInputs = [
24 requests
25 arrow
26 python-box
27 ];
28
29 checkInputs = [
30 pytest-datafiles
31 pytest-vcr
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "restfly" ];
36
37 meta = with lib; {
38 description = "Python RESTfly API Library Framework";
39 homepage = "https://github.com/stevemcgrath/restfly";
40 license = with licenses; [ mit ];
41 maintainers = with maintainers; [ fab ];
42 };
43}