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