Unverified Commit ba62d84c authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python3Packages.requests-pkcs12: disable on older Python releases

parent 4119bab0
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -2,18 +2,22 @@
, buildPythonPackage
, fetchFromGitHub
, pyopenssl
, pythonOlder
, requests
}:

buildPythonPackage rec {
  pname = "requests-pkcs12";
  version = "1.14";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "m-click";
    repo = "requests_pkcs12";
    rev = version;
    sha256 = "sha256-LZgKjSas0KdJAf4leSVz8sEnRrlJ20Sm9Ka+S5zDOTM=";
    hash = "sha256-LZgKjSas0KdJAf4leSVz8sEnRrlJ20Sm9Ka+S5zDOTM=";
  };

  propagatedBuildInputs = [
@@ -23,7 +27,10 @@ buildPythonPackage rec {

  # Project has no tests
  doCheck = false;
  pythonImportsCheck = [ "requests_pkcs12" ];

  pythonImportsCheck = [
    "requests_pkcs12"
  ];

  meta = with lib; {
    description = "PKCS#12 support for the Python requests library";