1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyopenssl,
6 pythonOlder,
7 requests,
8}:
9
10buildPythonPackage rec {
11 pname = "requests-pkcs12";
12 version = "1.27";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "m-click";
19 repo = "requests_pkcs12";
20 rev = version;
21 hash = "sha256-4B7jL3OubIF8ZOYzsODltZCAHhb+PM18uJDOssuM6R4=";
22 };
23
24 propagatedBuildInputs = [
25 requests
26 pyopenssl
27 ];
28
29 # Project has no tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "requests_pkcs12" ];
33
34 meta = with lib; {
35 description = "PKCS#12 support for the Python requests library";
36 homepage = "https://github.com/m-click/requests_pkcs12";
37 license = with licenses; [ isc ];
38 maintainers = with maintainers; [ fab ];
39 };
40}