depot/third_party/nixpkgs/pkgs/development/python-modules/oscrypto/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

52 lines
875 B
Nix

{ lib
, stdenv
, asn1crypto
, buildPythonPackage
, fetchFromGitHub
, openssl
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "oscrypto";
version = "1.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "wbond";
repo = pname;
rev = version;
hash = "sha256-CmDypmlc/kb6ONCUggjT1Iqd29xNSLRaGh5Hz36dvOw=";
};
propagatedBuildInputs = [
asn1crypto
openssl
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"oscrypto"
];
doCheck = !stdenv.isDarwin;
disabledTests = [
# Tests require network access
"TLSTests"
"TrustListTests"
];
meta = with lib; {
description = "Encryption library for Python";
homepage = "https://github.com/wbond/oscrypto";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}