summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/requests-ntlm/default.nix
blob: 2d6e023b2f2e91ba4aaef1e8be8df9b547645828 (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
42
43
44
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  cryptography,
  pyspnego,
  requests,
}:

buildPythonPackage rec {
  pname = "requests-ntlm";
  version = "1.3.0";

  pyproject = true;

  src = fetchPypi {
    pname = "requests_ntlm";
    inherit version;
    hash = "sha256-spzCRiYj3/35uIxD4YDMtzW0AHIopUIiDogsWK5Wxmg=";
  };

  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [
    cryptography
    pyspnego
    requests
  ];

  pythonImportsCheck = [ "requests_ntlm" ];

  # Tests require networking
  doCheck = false;

  meta = {
    description = "HTTP NTLM authentication support for python-requests";
    homepage = "https://github.com/requests/requests-ntlm";
    changelog = "https://github.com/requests/requests-ntlm/releases/tag/v${version}";
    license = lib.licenses.isc;
    maintainers = with lib.maintainers; [ elasticdog ];
    platforms = lib.platforms.all;
  };
}