depot/third_party/nixpkgs/pkgs/development/python-modules/requests-pkcs12/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

40 lines
791 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyopenssl,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "requests-pkcs12";
version = "1.25";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "m-click";
repo = "requests_pkcs12";
rev = version;
hash = "sha256-ukS0vxG2Rd71GsF1lmpsDSM2JovwqhXsaAnZdF8WGQo=";
};
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 ];
};
}