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