nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 cryptography,
5 fetchFromGitHub,
6 pyspnego,
7 pytestCheckHook,
8 requests,
9}:
10
11buildPythonPackage rec {
12 pname = "requests-credssp";
13 version = "2.0.0";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "jborean93";
18 repo = "requests-credssp";
19 rev = "v${version}";
20 hash = "sha256-HHLEmQ+mNjMjpR6J+emrKFM+2PiYq32o7Gnoo0gUrNA=";
21 };
22
23 propagatedBuildInputs = [
24 cryptography
25 pyspnego
26 requests
27 ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 optional-dependencies = {
32 kerberos = pyspnego.optional-dependencies.kerberos;
33 };
34
35 pythonImportsCheck = [ "requests_credssp" ];
36
37 meta = {
38 description = "HTTPS CredSSP authentication with the requests library";
39 homepage = "https://github.com/jborean93/requests-credssp";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ fab ];
42 };
43}