about summary refs log tree commit diff
path: root/pkgs/development/python-modules/requests-file/default.nix
blob: de7a94c75aa05106c8c2c9ef5e30bbf498c2d8ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, fetchPypi
, buildPythonPackage
, pytestCheckHook
, requests
, six
}:

buildPythonPackage rec {
  pname = "requests-file";
  version = "1.5.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-B9dCCNM4nQHDirie9AOvDP7GOVfVOgCB2OynONAkfY4=";
  };

  propagatedBuildInputs = [
    requests
    six
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "requests_file"
  ];

  meta = with lib; {
    description = "Transport adapter for fetching file:// URLs with the requests python library";
    homepage = "https://github.com/dashea/requests-file";
    license = licenses.asl20;
    maintainers = with maintainers; [ ];
  };
}