2021-03-28 21:51:13 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyopenssl
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-pkcs12";
|
2021-06-29 21:59:17 +01:00
|
|
|
version = "1.10";
|
2021-03-28 21:51:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-click";
|
|
|
|
repo = "requests_pkcs12";
|
|
|
|
rev = version;
|
2021-06-29 21:59:17 +01:00
|
|
|
sha256 = "sha256-HIUCzHxOsbk1OmcxkRK9GQ+SZ6Uf1xDylOe2pUYz3Hk=";
|
2021-03-28 21:51:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
pyopenssl
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "requests_pkcs12" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "PKCS#12 support for the Python requests library";
|
|
|
|
homepage = "https://github.com/m-click/requests_pkcs12";
|
|
|
|
license = with licenses; [ isc ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|