python3Packages.requests-pkcs12: disable on older Python releases
This commit is contained in:
parent
4119bab067
commit
ba62d84ce5
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue