summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/requests-file/default.nix
blob: 8425496b18a50a371f01b4b968fae15e5f9b0f28 (plain)
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
39
40
41
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  setuptools,
  setuptools-scm,
  pytestCheckHook,
  requests,
}:

buildPythonPackage rec {
  pname = "requests-file";
  version = "2.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dashea";
    repo = "requests-file";
    tag = version;
    hash = "sha256-JtdtE44yiw2mLMZ0bJv0QiGWb7f8ywPLF7+BUufh/g4=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [ requests ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "requests_file" ];

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