python3Packages.requests-pkcs12: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-26 22:48:01 +02:00 committed by GitHub
parent 4119bab067
commit ba62d84ce5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,18 +2,22 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pyopenssl , pyopenssl
, pythonOlder
, requests , requests
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "requests-pkcs12"; pname = "requests-pkcs12";
version = "1.14"; version = "1.14";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "m-click"; owner = "m-click";
repo = "requests_pkcs12"; repo = "requests_pkcs12";
rev = version; rev = version;
sha256 = "sha256-LZgKjSas0KdJAf4leSVz8sEnRrlJ20Sm9Ka+S5zDOTM="; hash = "sha256-LZgKjSas0KdJAf4leSVz8sEnRrlJ20Sm9Ka+S5zDOTM=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -23,7 +27,10 @@ buildPythonPackage rec {
# Project has no tests # Project has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "requests_pkcs12" ];
pythonImportsCheck = [
"requests_pkcs12"
];
meta = with lib; { meta = with lib; {
description = "PKCS#12 support for the Python requests library"; description = "PKCS#12 support for the Python requests library";